Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138893

published

fault-inject: fix dentry leak

Published
30 Nov 2026, 13:25:58 UTC
Updated
30 Nov 2026, 13:25:58 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < aaac7d8fdae26d0753b6ee53f241d29380d22585 · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < 060ac88055da7a9e4047acb1f1b68e2e7a803605 · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < 0b1a8554cde4f90e0399da4016d8907dc7b72e79 · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < da4ad8207646ddc36e4e4f07cb672925c5675c1b · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < e172a797d4cfeabed1068437720dc54174c7ac33 · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < de69081c154e85db8f80ff260344881636e969a8 · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < 0237ca9810cf9b999c9b787726e62d3bdf634f24 · 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < ceb43516a9aae0d969a4ec5ab40d45bd09e64229 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.19 (affected) · 0 to < 3.19 (unaffected · semver) · 5.10.275 through 5.10.* (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.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 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 Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: fault-inject: fix dentry leak fault_create_debugfs_attr() has always taken an extra dentry reference on the created directory (attr->dname = dget(dir)) so that fail_dump() could print the name via %pd from any context. Nothing anywhere in the tree ever calls dput() on attr->dname. For callers with a matching teardown, that unmatched reference causes one dentry plus its attached inode to leak per fault_create_debugfs_attr / debugfs_remove_recursive cycle. simple_recursive_removal() drops debugfs's own +1 ref on the child dentry, but the dget()'d ref keeps its refcount at 1: the dentry ends up unhashed but pinned, and its inode is never freed. Boot-once callers (mm/failslab, block/blk-core, etc.) leak exactly once at init and never destroy the tree, so the impact there is bounded. But per-lifecycle callers (drivers/nvme, drivers/infiniband/hw/hfi1, drivers/mmc, drivers/iommu/iommufd, drivers/media, drivers/misc, drivers/gpu/drm/msm, drivers/crypto, net/sunrpc) leak on every create/destroy cycle. We observed this in production: an NVMe/RDMA host repeatedly reconnecting to a target that rejected the CRTO Property Get went through ~50 nvme controller create/destroy cycles per second, and dentry and inode_cache grew by ~13k pinned objects per 240 s -- unrecoverable through drop_caches. Byte math matched a per-cycle 1-dentry / 1-inode leak from the "fault_inject" directory dentry. Fix this by not holding any external reference in fault_attr. Embed the directory name as a fixed-size char array (FAULT_ATTR_DNAME_LEN, 64 bytes) inside struct fault_attr, copied by strscpy() at fault_create_debugfs_attr() time. fail_dump() prints it via %s. Advantages of an embedded array over kstrdup() + kfree() paired with a new destroy API: - Zero API footprint. No new export and no caller changes required: callers already own their fault_attr's memory and free it when they are done, and now that suffices. - No allocation on the create path. - fault_create_debugfs_attr() cannot fail from the name-copy step. - No lifetime coupling between attr->dname and debugfs; the string is valid for exactly as long as the containing struct. The 64-byte length accommodates every in-tree caller with generous headroom (the longest current name is "fail_dma_array_full", 19 chars). The user-visible fail_dump() format changes from "name %pd" to "name %s", but the printed content is identical -- %pd on the created directory renders the same string that was passed in as @name. drivers/infiniband/hw/hfi1/fault.c drops a now-invalid "attr.dname = NULL" statement; the surrounding kzalloc() already zero-initialises the array.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

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.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < aaac7d8fdae26d0753b6ee53f241d29380d22585 (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < 060ac88055da7a9e4047acb1f1b68e2e7a803605 (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < 0b1a8554cde4f90e0399da4016d8907dc7b72e79 (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < da4ad8207646ddc36e4e4f07cb672925c5675c1b (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < e172a797d4cfeabed1068437720dc54174c7ac33 (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < de69081c154e85db8f80ff260344881636e969a8 (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < 0237ca9810cf9b999c9b787726e62d3bdf634f24 (affected · git)6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a to < ceb43516a9aae0d969a4ec5ab40d45bd09e64229 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.19 (affected)0 to < 3.19 (unaffected · semver)5.10.275 through 5.10.* (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.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

fault-inject: fix dentry leak

Provenance

Schema
5.2
Searchable
yes
Content hash
bdfc6e1ecb9ae720b1f2c6d3d2fe2c47fd167e704ece0381eb8bfa4b3c76f12b
Ingested
30 Nov 2026, 13:30:06 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected