CVE-2026-139549
publishednvdimm/pmem: Release gendisk on probe failure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 9713540fd6aab75eca911ae33e59a67d9b9df245 · 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < acfdb9495320f17cf67a15c863ee152d53d02081 · 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 02f73f2baa2374326636feda7767b2c97a241864 · 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 5372a7979cc68eec28cb074ee386df681928c03a · 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < e3581fa72dc6ca5340945228f60efed34afaa515 · 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < f666e1db6026e2f492ad5f4a45782443798fb920 · 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 855a46681e0ba601952c346e5b62d867e51ecb23 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: nvdimm/pmem: Release gendisk on probe failure pmem_attach_disk() allocates the gendisk with blk_alloc_disk() and hands it to devres only once device_add_disk() has succeeded. Until that point the probe path owns the disk itself, which is why every failure after the allocation jumps to the out: label and puts it there. The devm_init_badblocks() failure returns directly instead, so the disk allocated a few lines earlier is never released. Nothing releases it afterwards either: the devres action that would have done so has not been registered yet, so unbinding the namespace or destroying it does not reach the disk, and it stays allocated along with its queue and its bdev inode until the machine is rebooted. devm_init_badblocks() only fails when a single page allocation fails, so reaching this at all needs memory exhaustion during namespace probe, and because device_add_disk() has not run there is nothing user visible left behind: no device node, no sysfs entry, only the leaked memory. Release the gendisk through the existing cleanup path on this failure.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 9713540fd6aab75eca911ae33e59a67d9b9df245 (affected · git)3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < acfdb9495320f17cf67a15c863ee152d53d02081 (affected · git)3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 02f73f2baa2374326636feda7767b2c97a241864 (affected · git)3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 5372a7979cc68eec28cb074ee386df681928c03a (affected · git)3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < e3581fa72dc6ca5340945228f60efed34afaa515 (affected · git)3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < f666e1db6026e2f492ad5f4a45782443798fb920 (affected · git)3dd60fb9d95db9c78fec86ba4df20852a7b974ba to < 855a46681e0ba601952c346e5b62d867e51ecb23 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/02f73f2baa2374326636feda7767b2c97a241864
- https://git.kernel.org/stable/c/5372a7979cc68eec28cb074ee386df681928c03a
- https://git.kernel.org/stable/c/855a46681e0ba601952c346e5b62d867e51ecb23
- https://git.kernel.org/stable/c/9713540fd6aab75eca911ae33e59a67d9b9df245
- https://git.kernel.org/stable/c/acfdb9495320f17cf67a15c863ee152d53d02081
- https://git.kernel.org/stable/c/e3581fa72dc6ca5340945228f60efed34afaa515
- https://git.kernel.org/stable/c/f666e1db6026e2f492ad5f4a45782443798fb920
Provider assertions
1Linux · cna
nvdimm/pmem: Release gendisk on probe failure
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 28f61e3507626b60c63cd660cf0bf3f2a30883daa8303bc4100283f4234d066c
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record