{"id":"CVE-2022-50756","state":"PUBLISHED","title":"nvme-pci: fix mempool alloc size","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-pci: fix mempool alloc size\n\nConvert the max size to bytes to match the units of the divisor that\ncalculates the worst-case number of PRP entries.\n\nThe result is used to determine how many PRP Lists are required. The\ncode was previously rounding this to 1 list, but we can require 2 in the\nworst case. In that scenario, the driver would corrupt memory beyond the\nsize provided by the mempool.\n\nWhile unlikely to occur (you'd need a 4MB in exactly 127 phys segments\non a queue that doesn't support SGLs), this memory corruption has been\nobserved by kfence.","publishedAt":"2025-12-24T13:05:49.635Z","updatedAt":"2026-10-15T21:41:23.908Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"dfb6d54893d544151e7f480bc44cfe7823f5ad23","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"9141144b37f30e3e7fa024bcfa0a13011e546ba9","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"e1777b4286e526c58b4ee699344b0ad85aaf83a0","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"b1814724e0d7162bdf4799f2d565381bc2251c63","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"c89a529e823d51dd23c7ec0c047c7a454a428541","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"5.10.163","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.87","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.17","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.3","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50756.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50756","state":"PUBLISHED","datePublished":"2025-12-24T13:05:49.635Z","dateUpdated":"2026-10-15T21:41:23.908Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T13:02:21.545Z"},"containers":{"cna":{"title":"nvme-pci: fix mempool alloc size","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-pci: fix mempool alloc size\n\nConvert the max size to bytes to match the units of the divisor that\ncalculates the worst-case number of PRP entries.\n\nThe result is used to determine how many PRP Lists are required. The\ncode was previously rounding this to 1 list, but we can require 2 in the\nworst case. In that scenario, the driver would corrupt memory beyond the\nsize provided by the mempool.\n\nWhile unlikely to occur (you'd need a 4MB in exactly 127 phys segments\non a queue that doesn't support SGLs), this memory corruption has been\nobserved by kfence."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"dfb6d54893d544151e7f480bc44cfe7823f5ad23","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"9141144b37f30e3e7fa024bcfa0a13011e546ba9","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"e1777b4286e526c58b4ee699344b0ad85aaf83a0","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"b1814724e0d7162bdf4799f2d565381bc2251c63","versionType":"git"},{"version":"943e942e6266f22babee5efeb00f8f672fbff5bd","status":"affected","lessThan":"c89a529e823d51dd23c7ec0c047c7a454a428541","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"5.10.163","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.87","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.17","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.3","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dfb6d54893d544151e7f480bc44cfe7823f5ad23"},{"url":"https://git.kernel.org/stable/c/9141144b37f30e3e7fa024bcfa0a13011e546ba9"},{"url":"https://git.kernel.org/stable/c/e1777b4286e526c58b4ee699344b0ad85aaf83a0"},{"url":"https://git.kernel.org/stable/c/b1814724e0d7162bdf4799f2d565381bc2251c63"},{"url":"https://git.kernel.org/stable/c/c89a529e823d51dd23c7ec0c047c7a454a428541"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is in the nvme-pci host driver and is reached only through local block I/O submission to an NVMe namespace, not by parsing network packets or remote NVMe fabrics protocols.\nAC:L - An attacker can reliably craft large O_DIRECT I/Os with a fragmented user buffer to produce ~2–4MB requests with a high phys-segment count, forcing the PRP path and the undersized mempool overflow without depending on a race or other uncontrolled state.\nPR:L - Any unprivileged local user who can write to a file on an NVMe-backed filesystem can submit the triggering I/O; raw block-device privileges or root capabilities are not required.\nUI:N - Exploitation requires only attacker-controlled I/O; no separate victim action such as mounting a volume or opening a malicious file is needed.\nS:U - This is a host-kernel heap corruption in the NVMe driver that can escalate privileges within the same OS security authority; it does not cross a VM, IOMMU, or other security boundary by itself.\nC:H - The bug is a heap out-of-bounds write of PRP list pointers past the iod mempool object, which is memory corruption that can be leveraged for arbitrary kernel read primitives under standard heap-exploitation techniques.\nI:H - Out-of-bounds writes into adjacent slab memory enable corruption of kernel objects and control-flow hijacking primitives, so integrity impact is high per OOB-write guidance.\nA:H - The same overflow can crash the kernel (observed under KFENCE) via slab corruption or guard-page faults, producing a full availability loss."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:59:42.355Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.10.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.15.87"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.0.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.1.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-50756","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:32:29.362408Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:23.908Z"}}]}}}