PT-2026-162753

CVE-2026-138893

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾