nvme-pci: fix mempool alloc size (Linux Linux)

CVE-2022-50756
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 943e942e6266f22babee5efeb00f8f672fbff5bd < dfb6d54893d544151e7f480bc44cfe7823f5ad23 ; affected 943e942e6266f22babee5efeb00f8f672fbff5bd < 9141144b37f30e3e7fa024bcfa0a13011e546ba9 ; affected 943e942e6266f22babee5efeb00f8f672fbff5bd < e1777b4286e526c58b4ee699344b0ad85aaf83a0 ; affected 943e942e6266f22babee5efeb00f8f672fbff5bd < b1814724e0d7162bdf4799f2d565381bc2251c63 ; affected 943e942e6266f22babee5efeb00f8f672fbff5bd < c89a529e823d51dd23c7ec0c047c7a454a428541
Linux · Linuxaffected 4.18 ; unaffected 0 < 4.18 ; unaffected 5.10.163 ≤ 5.10.* ; unaffected 5.15.87 ≤ 5.15.* ; unaffected 6.0.17 ≤ 6.0.* ; unaffected 6.1.3 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD