{"id":"CVE-2026-97950","aliases":["CVE-2026-97950"],"related":[],"kind":"vulnerability","state":"published","title":"configfs: pin the symlink target's dirent instead of chasing ->ci_dentry","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nconfigfs: pin the symlink target's dirent instead of chasing ->ci_dentry\n\ncreate_link() reads the target's configfs_dirent from\nitem->ci_dentry->d_fsdata, relying on the item reference taken by\nget_target().  That reference pins the item, not its dentry: the dentry is\npinned by DCACHE_PERSISTENT, which configfs_remove_dir() releases via\nsimple_rmdir() while the item is still alive.  A symlink racing with rmdir\nof its target can therefore find ->ci_dentry freed and its dirent\nreleased, triggering WARN_ON(!atomic_read(&sd->s_count)) in configfs_get().\n\nTake the dirent in get_target() as well, under ->d_lock and atomically\nwith the item reference, and pass it down to create_link().  A hashed\ndentry has not been killed yet, so its ->d_fsdata reference keeps the\ndirent alive there.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nconfigfs: pin the symlink target's dirent instead of chasing ->ci_dentry\n\ncreate_link() reads the target's configfs_dirent from\nitem->ci_dentry->d_fsdata, relying on the item reference taken by\nget_target().  That reference pins the item, not its dentry: the dentry is\npinned by DCACHE_PERSISTENT, which configfs_remove_dir() releases via\nsimple_rmdir() while the item is still alive.  A symlink racing with rmdir\nof its target can therefore find ->ci_dentry freed and its dirent\nreleased, triggering WARN_ON(!atomic_read(&sd->s_count)) in configfs_get().\n\nTake the dirent in get_target() as well, under ->d_lock and atomically\nwith the item reference, and pass it down to create_link().  A hashed\ndentry has not been killed yet, so its ->d_fsdata reference keeps the\ndirent alive there.","source":"cvelist"}],"published":"2026-09-25T10:22:58.970Z","modified":"2026-11-23T08:17:23.130Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7063fbf2261194f72ee75afca67b3b38b554b5fa","fixed":"0bc27c3d2e24376e34c8db590ae6ecef68c6ed82","status":"affected"},{"type":"git","introduced":"7063fbf2261194f72ee75afca67b3b38b554b5fa","fixed":"a44744454eafbc158e8c8e3ef8d207076410b195","status":"affected"},{"type":"git","introduced":"7063fbf2261194f72ee75afca67b3b38b554b5fa","fixed":"846ff40fd57a47e59a41f4e331ec3b34efaddc23","status":"affected"},{"type":"git","introduced":"7063fbf2261194f72ee75afca67b3b38b554b5fa","fixed":"4f54beb2e7f6d399396466682fba3539bcdcb414","status":"affected"},{"type":"git","introduced":"7063fbf2261194f72ee75afca67b3b38b554b5fa","fixed":"d47c5de1cd6bfbe1067fc310bf90e4e00205e839","status":"affected"},{"type":"git","introduced":"7063fbf2261194f72ee75afca67b3b38b554b5fa","fixed":"a7c1290eef60711c10289c056ad32ed1f2b47b12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0bc27c3d2e24376e34c8db590ae6ecef68c6ed82","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a44744454eafbc158e8c8e3ef8d207076410b195","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/846ff40fd57a47e59a41f4e331ec3b34efaddc23","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f54beb2e7f6d399396466682fba3539bcdcb414","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d47c5de1cd6bfbe1067fc310bf90e4e00205e839","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7c1290eef60711c10289c056ad32ed1f2b47b12","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97950","url":"https://www.cve.org/CVERecord?id=CVE-2026-97950","licence":"CVE Terms of Use","modified":"2026-11-23T07:59:27.975Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97950","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97950","licence":"Public domain","modified":"2026-11-23T08:17:23.130Z"}],"updatedAt":"2026-11-25T22:59:41.000Z","epss":{"score":0.00227,"percentile":0.14356,"date":"2026-12-01T12:00:22.000Z"}}