{"id":"CVE-2026-74363","aliases":["CVE-2026-74363"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: fix UAF by restoring RCU-delayed inode freeing in bpffs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix UAF by restoring RCU-delayed inode freeing in bpffs\n\ncommit 4f375ade6aa9 (\"bpf: Avoid RCU context warning when unpinning\nhtab with internal structs\") moved inode cleanup from ->free_inode()\ninto ->destroy_inode() to avoid sleeping in RCU context when calling\nbpf_any_put(). However this removed the RCU delay on freeing the\ninode itself and the cached symlink body (i_link), both of which\ncan be accessed by RCU pathwalk (pick_link, may_lookup etc.).\n\nThis causes a use-after-free when a concurrent unlinkat() drops the\nlast inode reference and destroy_inode() frees the inode immediately,\nwhile another task is still walking the path in RCU mode and reads\ninode->i_opflags (offset +2) inside current_time() -> is_mgtime().\n\nKASAN reports:\n  BUG: KASAN: slab-use-after-free in is_mgtime include/linux/fs.h:2313\n  Read of size 2 at addr ffff8880407e4282 (offset +2 = i_opflags)\n\nThe rules (per Al Viro):\n  ->destroy_inode()  called immediately, can sleep, use for blocking\n                     cleanup e.g. bpf_any_put()\n  ->free_inode()     called after RCU grace period, use for freeing\n                     inode and anything RCU-accessible e.g. i_link\n\nFix: split the two concerns properly:\n  - keep bpf_any_put() in bpf_destroy_inode() since it is blocking\n    and needs to run promptly\n  - introduce bpf_free_inode() to handle kfree(i_link) and\n    free_inode_nonrcu() with proper RCU delay, preventing the UAF","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix UAF by restoring RCU-delayed inode freeing in bpffs\n\ncommit 4f375ade6aa9 (\"bpf: Avoid RCU context warning when unpinning\nhtab with internal structs\") moved inode cleanup from ->free_inode()\ninto ->destroy_inode() to avoid sleeping in RCU context when calling\nbpf_any_put(). However this removed the RCU delay on freeing the\ninode itself and the cached symlink body (i_link), both of which\ncan be accessed by RCU pathwalk (pick_link, may_lookup etc.).\n\nThis causes a use-after-free when a concurrent unlinkat() drops the\nlast inode reference and destroy_inode() frees the inode immediately,\nwhile another task is still walking the path in RCU mode and reads\ninode->i_opflags (offset +2) inside current_time() -> is_mgtime().\n\nKASAN reports:\n  BUG: KASAN: slab-use-after-free in is_mgtime include/linux/fs.h:2313\n  Read of size 2 at addr ffff8880407e4282 (offset +2 = i_opflags)\n\nThe rules (per Al Viro):\n  ->destroy_inode()  called immediately, can sleep, use for blocking\n                     cleanup e.g. bpf_any_put()\n  ->free_inode()     called after RCU grace period, use for freeing\n                     inode and anything RCU-accessible e.g. i_link\n\nFix: split the two concerns properly:\n  - keep bpf_any_put() in bpf_destroy_inode() since it is blocking\n    and needs to run promptly\n  - introduce bpf_free_inode() to handle kfree(i_link) and\n    free_inode_nonrcu() with proper RCU delay, preventing the UAF","source":"cvelist"}],"published":"2026-08-15T05:58:46.220Z","modified":"2026-10-16T19:17:41.930Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e28616ca3d67e745ecb2f10eba4a626e1fc9a203","fixed":"ea1c243c39e32b7fc1c2edfe32081ff7e30a877c","status":"affected"},{"type":"git","introduced":"743a620c661994c7f0938e6dd32fb0883fb1e0ea","fixed":"5fecb71c10c28aef276ba49c718dc961745fdcf0","status":"affected"},{"type":"git","introduced":"b6e9645be9eb93f7aff3ca887f8edb6f1d63358f","fixed":"c70d0f9114c3cc156f6029a400c4eb7e6f7c82b2","status":"affected"},{"type":"git","introduced":"ee04cff9ed4d6bb25802f5cecfcd0750500410f3","fixed":"53649846e0437d1d9b7cb993cfe54c367addf7ae","status":"affected"},{"type":"git","introduced":"4f375ade6aa9f37fd72d7a78682f639772089eed","fixed":"61f19729728243c82476dee31315143ed3275e7f","status":"affected"},{"type":"git","introduced":"4f375ade6aa9f37fd72d7a78682f639772089eed","fixed":"0497ff765746d9b2d17445c8f7cc737b36c0152a","status":"affected"},{"type":"git","introduced":"4f375ade6aa9f37fd72d7a78682f639772089eed","fixed":"b93c55b4932dd7e32dca8cf34a3443cc87a02906","status":"affected"},{"type":"git","version":"de2d2baecc84cc7fca52eec2b9b55d89c93e3565","status":"affected"},{"type":"semver","introduced":"5.15.195","fixed":"5.15.212","status":"affected"},{"type":"semver","introduced":"6.1.157","fixed":"6.1.178","status":"affected"},{"type":"semver","introduced":"6.6.113","fixed":"6.6.145","status":"affected"},{"type":"semver","introduced":"6.12.54","fixed":"6.12.97","status":"affected"},{"type":"semver","introduced":"6.17.4","fixed":"6.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/ea1c243c39e32b7fc1c2edfe32081ff7e30a877c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5fecb71c10c28aef276ba49c718dc961745fdcf0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c70d0f9114c3cc156f6029a400c4eb7e6f7c82b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/53649846e0437d1d9b7cb993cfe54c367addf7ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61f19729728243c82476dee31315143ed3275e7f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0497ff765746d9b2d17445c8f7cc737b36c0152a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b93c55b4932dd7e32dca8cf34a3443cc87a02906","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:54:33.862Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74363","url":"https://www.cve.org/CVERecord?id=CVE-2026-74363","licence":"CVE Terms of Use","modified":"2026-10-16T18:55:35.622Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74363","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74363","licence":"Public domain","modified":"2026-10-16T19:17:41.930Z"}],"updatedAt":"2026-11-25T22:59:33.183Z","epss":{"score":0.00126,"percentile":0.02428,"date":"2026-12-01T12:00:22.000Z"}}