{"api_version":"1","generated_at":"2026-12-01T02:49:17+00:00","cve":"CVE-2026-138893","urls":{"html":"https://cve.report/CVE-2026-138893","api":"https://cve.report/api/cve/CVE-2026-138893.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138893","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138893"},"summary":{"title":"fault-inject: fix dentry leak","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfault-inject: fix dentry leak\n\nfault_create_debugfs_attr() has always taken an extra dentry reference on\nthe created directory (attr->dname = dget(dir)) so that fail_dump() could\nprint the name via %pd from any context.  Nothing anywhere in the tree\never calls dput() on attr->dname.\n\nFor callers with a matching teardown, that unmatched reference causes one\ndentry plus its attached inode to leak per fault_create_debugfs_attr /\ndebugfs_remove_recursive cycle.  simple_recursive_removal() drops\ndebugfs's own +1 ref on the child dentry, but the dget()'d ref keeps its\nrefcount at 1: the dentry ends up unhashed but pinned, and its inode is\nnever freed.\n\nBoot-once callers (mm/failslab, block/blk-core, etc.) leak exactly once at\ninit and never destroy the tree, so the impact there is bounded.  But\nper-lifecycle callers (drivers/nvme, drivers/infiniband/hw/hfi1,\ndrivers/mmc, drivers/iommu/iommufd, drivers/media, drivers/misc,\ndrivers/gpu/drm/msm, drivers/crypto, net/sunrpc) leak on every\ncreate/destroy cycle.\n\nWe observed this in production: an NVMe/RDMA host repeatedly reconnecting\nto a target that rejected the CRTO Property Get went through ~50 nvme\ncontroller create/destroy cycles per second, and dentry and inode_cache\ngrew by ~13k pinned objects per 240 s -- unrecoverable through\ndrop_caches.  Byte math matched a per-cycle 1-dentry / 1-inode leak from\nthe \"fault_inject\" directory dentry.\n\nFix this by not holding any external reference in fault_attr.  Embed the\ndirectory name as a fixed-size char array (FAULT_ATTR_DNAME_LEN, 64 bytes)\ninside struct fault_attr, copied by strscpy() at\nfault_create_debugfs_attr() time.  fail_dump() prints it via %s.\n\nAdvantages of an embedded array over kstrdup() + kfree() paired with a new\ndestroy API:\n\n  - Zero API footprint.  No new export and no caller changes required:\n    callers already own their fault_attr's memory and free it when\n    they are done, and now that suffices.\n  - No allocation on the create path.\n  - fault_create_debugfs_attr() cannot fail from the name-copy step.\n  - No lifetime coupling between attr->dname and debugfs; the string\n    is valid for exactly as long as the containing struct.\n\nThe 64-byte length accommodates every in-tree caller with generous\nheadroom (the longest current name is \"fail_dma_array_full\", 19 chars).\n\nThe user-visible fail_dump() format changes from \"name %pd\" to \"name %s\",\nbut the printed content is identical -- %pd on the created directory\nrenders the same string that was passed in as @name.\n\ndrivers/infiniband/hw/hfi1/fault.c drops a now-invalid \"attr.dname = NULL\"\nstatement; the surrounding kzalloc() already zero-initialises the array.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:47","updated_at":"2026-11-30 14:17:47"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/de69081c154e85db8f80ff260344881636e969a8","name":"https://git.kernel.org/stable/c/de69081c154e85db8f80ff260344881636e969a8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0b1a8554cde4f90e0399da4016d8907dc7b72e79","name":"https://git.kernel.org/stable/c/0b1a8554cde4f90e0399da4016d8907dc7b72e79","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/aaac7d8fdae26d0753b6ee53f241d29380d22585","name":"https://git.kernel.org/stable/c/aaac7d8fdae26d0753b6ee53f241d29380d22585","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/da4ad8207646ddc36e4e4f07cb672925c5675c1b","name":"https://git.kernel.org/stable/c/da4ad8207646ddc36e4e4f07cb672925c5675c1b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e172a797d4cfeabed1068437720dc54174c7ac33","name":"https://git.kernel.org/stable/c/e172a797d4cfeabed1068437720dc54174c7ac33","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/060ac88055da7a9e4047acb1f1b68e2e7a803605","name":"https://git.kernel.org/stable/c/060ac88055da7a9e4047acb1f1b68e2e7a803605","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ceb43516a9aae0d969a4ec5ab40d45bd09e64229","name":"https://git.kernel.org/stable/c/ceb43516a9aae0d969a4ec5ab40d45bd09e64229","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0237ca9810cf9b999c9b787726e62d3bdf634f24","name":"https://git.kernel.org/stable/c/0237ca9810cf9b999c9b787726e62d3bdf634f24","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138893","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138893","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a aaac7d8fdae26d0753b6ee53f241d29380d22585 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a 060ac88055da7a9e4047acb1f1b68e2e7a803605 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a 0b1a8554cde4f90e0399da4016d8907dc7b72e79 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a da4ad8207646ddc36e4e4f07cb672925c5675c1b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a e172a797d4cfeabed1068437720dc54174c7ac33 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a de69081c154e85db8f80ff260344881636e969a8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a 0237ca9810cf9b999c9b787726e62d3bdf634f24 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a ceb43516a9aae0d969a4ec5ab40d45bd09e64229 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/infiniband/hw/hfi1/fault.c","include/linux/fault-inject.h","lib/fault-inject.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"aaac7d8fdae26d0753b6ee53f241d29380d22585","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"060ac88055da7a9e4047acb1f1b68e2e7a803605","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"0b1a8554cde4f90e0399da4016d8907dc7b72e79","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"da4ad8207646ddc36e4e4f07cb672925c5675c1b","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"e172a797d4cfeabed1068437720dc54174c7ac33","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"de69081c154e85db8f80ff260344881636e969a8","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"0237ca9810cf9b999c9b787726e62d3bdf634f24","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"},{"lessThan":"ceb43516a9aae0d969a4ec5ab40d45bd09e64229","status":"affected","version":"6adc4a22f20bbf3bbc754f1ec8c82be5dfb5c71a","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/hw/hfi1/fault.c","include/linux/fault-inject.h","lib/fault-inject.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.19"},{"lessThan":"3.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfault-inject: fix dentry leak\n\nfault_create_debugfs_attr() has always taken an extra dentry reference on\nthe created directory (attr->dname = dget(dir)) so that fail_dump() could\nprint the name via %pd from any context.  Nothing anywhere in the tree\never calls dput() on attr->dname.\n\nFor callers with a matching teardown, that unmatched reference causes one\ndentry plus its attached inode to leak per fault_create_debugfs_attr /\ndebugfs_remove_recursive cycle.  simple_recursive_removal() drops\ndebugfs's own +1 ref on the child dentry, but the dget()'d ref keeps its\nrefcount at 1: the dentry ends up unhashed but pinned, and its inode is\nnever freed.\n\nBoot-once callers (mm/failslab, block/blk-core, etc.) leak exactly once at\ninit and never destroy the tree, so the impact there is bounded.  But\nper-lifecycle callers (drivers/nvme, drivers/infiniband/hw/hfi1,\ndrivers/mmc, drivers/iommu/iommufd, drivers/media, drivers/misc,\ndrivers/gpu/drm/msm, drivers/crypto, net/sunrpc) leak on every\ncreate/destroy cycle.\n\nWe observed this in production: an NVMe/RDMA host repeatedly reconnecting\nto a target that rejected the CRTO Property Get went through ~50 nvme\ncontroller create/destroy cycles per second, and dentry and inode_cache\ngrew by ~13k pinned objects per 240 s -- unrecoverable through\ndrop_caches.  Byte math matched a per-cycle 1-dentry / 1-inode leak from\nthe \"fault_inject\" directory dentry.\n\nFix this by not holding any external reference in fault_attr.  Embed the\ndirectory name as a fixed-size char array (FAULT_ATTR_DNAME_LEN, 64 bytes)\ninside struct fault_attr, copied by strscpy() at\nfault_create_debugfs_attr() time.  fail_dump() prints it via %s.\n\nAdvantages of an embedded array over kstrdup() + kfree() paired with a new\ndestroy API:\n\n  - Zero API footprint.  No new export and no caller changes required:\n    callers already own their fault_attr's memory and free it when\n    they are done, and now that suffices.\n  - No allocation on the create path.\n  - fault_create_debugfs_attr() cannot fail from the name-copy step.\n  - No lifetime coupling between attr->dname and debugfs; the string\n    is valid for exactly as long as the containing struct.\n\nThe 64-byte length accommodates every in-tree caller with generous\nheadroom (the longest current name is \"fail_dma_array_full\", 19 chars).\n\nThe user-visible fail_dump() format changes from \"name %pd\" to \"name %s\",\nbut the printed content is identical -- %pd on the created directory\nrenders the same string that was passed in as @name.\n\ndrivers/infiniband/hw/hfi1/fault.c drops a now-invalid \"attr.dname = NULL\"\nstatement; the surrounding kzalloc() already zero-initialises the array."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:58.141Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/aaac7d8fdae26d0753b6ee53f241d29380d22585"},{"url":"https://git.kernel.org/stable/c/060ac88055da7a9e4047acb1f1b68e2e7a803605"},{"url":"https://git.kernel.org/stable/c/0b1a8554cde4f90e0399da4016d8907dc7b72e79"},{"url":"https://git.kernel.org/stable/c/da4ad8207646ddc36e4e4f07cb672925c5675c1b"},{"url":"https://git.kernel.org/stable/c/e172a797d4cfeabed1068437720dc54174c7ac33"},{"url":"https://git.kernel.org/stable/c/de69081c154e85db8f80ff260344881636e969a8"},{"url":"https://git.kernel.org/stable/c/0237ca9810cf9b999c9b787726e62d3bdf634f24"},{"url":"https://git.kernel.org/stable/c/ceb43516a9aae0d969a4ec5ab40d45bd09e64229"}],"title":"fault-inject: fix dentry leak","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138893","datePublished":"2026-11-30T13:25:58.141Z","dateReserved":"2026-11-30T13:22:15.902Z","dateUpdated":"2026-11-30T13:25:58.141Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:47","lastModifiedDate":"2026-11-30 14:17:47","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138893","Ordinal":"1","Title":"fault-inject: fix dentry leak","CVE":"CVE-2026-138893","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138893","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfault-inject: fix dentry leak\n\nfault_create_debugfs_attr() has always taken an extra dentry reference on\nthe created directory (attr->dname = dget(dir)) so that fail_dump() could\nprint the name via %pd from any context.  Nothing anywhere in the tree\never calls dput() on attr->dname.\n\nFor callers with a matching teardown, that unmatched reference causes one\ndentry plus its attached inode to leak per fault_create_debugfs_attr /\ndebugfs_remove_recursive cycle.  simple_recursive_removal() drops\ndebugfs's own +1 ref on the child dentry, but the dget()'d ref keeps its\nrefcount at 1: the dentry ends up unhashed but pinned, and its inode is\nnever freed.\n\nBoot-once callers (mm/failslab, block/blk-core, etc.) leak exactly once at\ninit and never destroy the tree, so the impact there is bounded.  But\nper-lifecycle callers (drivers/nvme, drivers/infiniband/hw/hfi1,\ndrivers/mmc, drivers/iommu/iommufd, drivers/media, drivers/misc,\ndrivers/gpu/drm/msm, drivers/crypto, net/sunrpc) leak on every\ncreate/destroy cycle.\n\nWe observed this in production: an NVMe/RDMA host repeatedly reconnecting\nto a target that rejected the CRTO Property Get went through ~50 nvme\ncontroller create/destroy cycles per second, and dentry and inode_cache\ngrew by ~13k pinned objects per 240 s -- unrecoverable through\ndrop_caches.  Byte math matched a per-cycle 1-dentry / 1-inode leak from\nthe \"fault_inject\" directory dentry.\n\nFix this by not holding any external reference in fault_attr.  Embed the\ndirectory name as a fixed-size char array (FAULT_ATTR_DNAME_LEN, 64 bytes)\ninside struct fault_attr, copied by strscpy() at\nfault_create_debugfs_attr() time.  fail_dump() prints it via %s.\n\nAdvantages of an embedded array over kstrdup() + kfree() paired with a new\ndestroy API:\n\n  - Zero API footprint.  No new export and no caller changes required:\n    callers already own their fault_attr's memory and free it when\n    they are done, and now that suffices.\n  - No allocation on the create path.\n  - fault_create_debugfs_attr() cannot fail from the name-copy step.\n  - No lifetime coupling between attr->dname and debugfs; the string\n    is valid for exactly as long as the containing struct.\n\nThe 64-byte length accommodates every in-tree caller with generous\nheadroom (the longest current name is \"fail_dma_array_full\", 19 chars).\n\nThe user-visible fail_dump() format changes from \"name %pd\" to \"name %s\",\nbut the printed content is identical -- %pd on the created directory\nrenders the same string that was passed in as @name.\n\ndrivers/infiniband/hw/hfi1/fault.c drops a now-invalid \"attr.dname = NULL\"\nstatement; the surrounding kzalloc() already zero-initialises the array.","Type":"Description","Title":"fault-inject: fix dentry leak"}]}}}