{"id":"CVE-2026-74400","aliases":["CVE-2026-74400"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries\n\nbpf_set_dentry_xattr and bpf_remove_dentry_xattr BPF kfuncs attempt to\nlock the inode of the supplied dentry without checking if it is\nNULL. If a negative dentry is passed (e.g. from\nsecurity_inode_create), d_inode(dentry) returns NULL, and\ninode_lock(inode) will cause a NULL pointer dereference.\n\nTrivially fix this by adding a NULL check for inode before attempting\nto lock it, returning -EINVAL if it is NULL.\n\nAdditionally, drop WARN_ON(!inode) in bpf_xattr_read_permission() and\nbpf_xattr_write_permission(). These warnings could be triggered by\npassing a negative dentry to bpf_get_dentry_xattr() or the _locked\nvariants of the xattr kfuncs, potentially causing a Denial of Service\non systems with panic_on_warn enabled. Instead, simply return -EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries\n\nbpf_set_dentry_xattr and bpf_remove_dentry_xattr BPF kfuncs attempt to\nlock the inode of the supplied dentry without checking if it is\nNULL. If a negative dentry is passed (e.g. from\nsecurity_inode_create), d_inode(dentry) returns NULL, and\ninode_lock(inode) will cause a NULL pointer dereference.\n\nTrivially fix this by adding a NULL check for inode before attempting\nto lock it, returning -EINVAL if it is NULL.\n\nAdditionally, drop WARN_ON(!inode) in bpf_xattr_read_permission() and\nbpf_xattr_write_permission(). These warnings could be triggered by\npassing a negative dentry to bpf_get_dentry_xattr() or the _locked\nvariants of the xattr kfuncs, potentially causing a Denial of Service\non systems with panic_on_warn enabled. Instead, simply return -EINVAL.","source":"cvelist"}],"published":"2026-08-15T05:59:11.450Z","modified":"2026-08-17T06:19:35.183Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"56467292794b800164df20c076c409ac548e56ec","fixed":"e003f3a4be738f650e283e92d07017c3fef8da52","status":"affected"},{"type":"git","introduced":"56467292794b800164df20c076c409ac548e56ec","fixed":"0160edf2af51c5fde742973742c5d10497901b21","status":"affected"},{"type":"git","introduced":"56467292794b800164df20c076c409ac548e56ec","fixed":"07410646f6ff1d23222f105ccab778957d401bbe","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","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/e003f3a4be738f650e283e92d07017c3fef8da52","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0160edf2af51c5fde742973742c5d10497901b21","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07410646f6ff1d23222f105ccab778957d401bbe","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74400","url":"https://www.cve.org/CVERecord?id=CVE-2026-74400","licence":"CVE Terms of Use","modified":"2026-08-17T05:18:40.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74400","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74400","licence":"Public domain","modified":"2026-08-17T06:19:35.183Z"}],"updatedAt":"2026-11-25T22:59:33.196Z","epss":{"score":0.00166,"percentile":0.06135,"date":"2026-12-01T12:00:22.000Z"}}