# CVE-2022-50756: nvme-pci: fix mempool alloc size

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-24T13:05:49.635Z
- Modified: 2026-10-15T22:17:33.853Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

nvme-pci: fix mempool alloc size

Convert the max size to bytes to match the units of the divisor that
calculates the worst-case number of PRP entries.

The result is used to determine how many PRP Lists are required. The
code was previously rounding this to 1 list, but we can require 2 in the
worst case. In that scenario, the driver would corrupt memory beyond the
size provided by the mempool.

While unlikely to occur (you'd need a 4MB in exactly 127 phys segments
on a queue that doesn't support SGLs), this memory corruption has been
observed by kfence.

(As written by CVE List.)

## Affected

- Linux Linux: from 943e942e6266f22babee5efeb00f8f672fbff5bd before dfb6d54893d544151e7f480bc44cfe7823f5ad23; from 943e942e6266f22babee5efeb00f8f672fbff5bd before 9141144b37f30e3e7fa024bcfa0a13011e546ba9; from 943e942e6266f22babee5efeb00f8f672fbff5bd before e1777b4286e526c58b4ee699344b0ad85aaf83a0; from 943e942e6266f22babee5efeb00f8f672fbff5bd before b1814724e0d7162bdf4799f2d565381bc2251c63; from 943e942e6266f22babee5efeb00f8f672fbff5bd before c89a529e823d51dd23c7ec0c047c7a454a428541; 4.18 (not affected: before 4.18; from 5.10.163 up to 5.10.*; from 5.15.87 up to 5.15.*; from 6.0.17 up to 6.0.*; from 6.1.3 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/dfb6d54893d544151e7f480bc44cfe7823f5ad23>
- <https://git.kernel.org/stable/c/9141144b37f30e3e7fa024bcfa0a13011e546ba9>
- <https://git.kernel.org/stable/c/e1777b4286e526c58b4ee699344b0ad85aaf83a0>
- <https://git.kernel.org/stable/c/b1814724e0d7162bdf4799f2d565381bc2251c63>
- <https://git.kernel.org/stable/c/c89a529e823d51dd23c7ec0c047c7a454a428541>

## Sources

- CVE List: [CVE-2022-50756](https://www.cve.org/CVERecord?id=CVE-2022-50756), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-50756](https://nvd.nist.gov/vuln/detail/CVE-2022-50756), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-50756 · Whole record: https://cve.day/CVE-2022-50756.json · Rebuilt by cve.day 2026-11-25T22:58:21.349Z
