CVE-2022-50756: nvme-pci: fix mempool alloc size
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50756?
CVE-2022-50756 has been rated as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2022-50756?
To fix CVE-2022-50756, update your Linux kernel to the patched version that addresses the vulnerability.
What does CVE-2022-50756 affect?
CVE-2022-50756 affects the nvme-pci driver in the Linux kernel.
What type of vulnerability is CVE-2022-50756?
CVE-2022-50756 is a resource allocation vulnerability related to mempool in the Linux kernel.
Is CVE-2022-50756 exploited in the wild?
There is currently no evidence to suggest that CVE-2022-50756 is being actively exploited in the wild.