CVE-2022-50814

Source
https://cve.org/CVERecord?id=CVE-2022-50814
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50814.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50814
Downstream
Related
Published
2025-12-30T12:08:30.862Z
Modified
2026-03-20T11:47:37.710878Z
Summary
crypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr
Details

In the Linux kernel, the following vulnerability has been resolved:

crypto: hisilicon/zip - fix mismatch in get/set sglsgenr

KASAN reported this Bug:

[17619.659757] BUG: KASAN: global-out-of-bounds in param_get_int+0x34/0x60
[17619.673193] Read of size 4 at addr fffff01332d7ed00 by task read_all/1507958
...
[17619.698934] The buggy address belongs to the variable:
[17619.708371]  sgl_sge_nr+0x0/0xffffffffffffa300 [hisi_zip]

There is a mismatch in hisizip when get/set the variable sglsgenr. The type of sglsgenr is u16, and get/set sglsgenr by paramget/set_int.

Replacing paramget/setint to paramget/setushort can fix this bug.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50814.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f081fda293ffba54216a7dab66faba7275475006
Fixed
d88b88514ef28515ccfa1f1787c2aedef75a79dd
Fixed
272093471305261c4e07a2fc97c2d1e53cd56819
Fixed
f8a983d6e01b198320d310cb1326364d7d973b2a
Fixed
5eaebd19fbb0e26e73a34f55d3b1dc310df0eb15
Fixed
d74f9340097a881869c4c22ca376654cc2516ecc

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50814.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.150
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.75
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50814.json"