{"id":"CVE-2022-50814","aliases":["CVE-2022-50814"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr\n\nKASAN reported this Bug:\n\n\t[17619.659757] BUG: KASAN: global-out-of-bounds in param_get_int+0x34/0x60\n\t[17619.673193] Read of size 4 at addr fffff01332d7ed00 by task read_all/1507958\n\t...\n\t[17619.698934] The buggy address belongs to the variable:\n\t[17619.708371]  sgl_sge_nr+0x0/0xffffffffffffa300 [hisi_zip]\n\nThere is a mismatch in hisi_zip when get/set the variable sgl_sge_nr.\nThe type of sgl_sge_nr is u16, and get/set sgl_sge_nr by\nparam_get/set_int.\n\nReplacing param_get/set_int to param_get/set_ushort can fix this bug.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr\n\nKASAN reported this Bug:\n\n\t[17619.659757] BUG: KASAN: global-out-of-bounds in param_get_int+0x34/0x60\n\t[17619.673193] Read of size 4 at addr fffff01332d7ed00 by task read_all/1507958\n\t...\n\t[17619.698934] The buggy address belongs to the variable:\n\t[17619.708371]  sgl_sge_nr+0x0/0xffffffffffffa300 [hisi_zip]\n\nThere is a mismatch in hisi_zip when get/set the variable sgl_sge_nr.\nThe type of sgl_sge_nr is u16, and get/set sgl_sge_nr by\nparam_get/set_int.\n\nReplacing param_get/set_int to param_get/set_ushort can fix this bug.","source":"cvelist"}],"published":"2025-12-30T12:08:30.862Z","modified":"2026-06-17T05:24:14.117Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f081fda293ffba54216a7dab66faba7275475006","fixed":"d88b88514ef28515ccfa1f1787c2aedef75a79dd","status":"affected"},{"type":"git","introduced":"f081fda293ffba54216a7dab66faba7275475006","fixed":"272093471305261c4e07a2fc97c2d1e53cd56819","status":"affected"},{"type":"git","introduced":"f081fda293ffba54216a7dab66faba7275475006","fixed":"f8a983d6e01b198320d310cb1326364d7d973b2a","status":"affected"},{"type":"git","introduced":"f081fda293ffba54216a7dab66faba7275475006","fixed":"5eaebd19fbb0e26e73a34f55d3b1dc310df0eb15","status":"affected"},{"type":"git","introduced":"f081fda293ffba54216a7dab66faba7275475006","fixed":"d74f9340097a881869c4c22ca376654cc2516ecc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.150","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/d88b88514ef28515ccfa1f1787c2aedef75a79dd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/272093471305261c4e07a2fc97c2d1e53cd56819","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f8a983d6e01b198320d310cb1326364d7d973b2a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5eaebd19fbb0e26e73a34f55d3b1dc310df0eb15","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d74f9340097a881869c4c22ca376654cc2516ecc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50814","url":"https://www.cve.org/CVERecord?id=CVE-2022-50814","licence":"CVE Terms of Use","modified":"2026-05-11T19:25:38.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50814","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50814","licence":"Public domain","modified":"2026-06-17T05:24:14.117Z"}],"updatedAt":"2026-11-25T22:58:21.365Z","epss":{"score":0.00262,"percentile":0.19209,"date":"2026-12-01T12:00:22.000Z"}}