CVE-2026-74400
bpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries
Check your servers for CVE-2026-74400
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-74400 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
bpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries
bpf_set_dentry_xattr and bpf_remove_dentry_xattr BPF kfuncs attempt to lock the inode of the supplied dentry without checking if it is NULL. If a negative dentry is passed (e.g. from security_inode_create), d_inode(dentry) returns NULL, and inode_lock(inode) will cause a NULL pointer dereference.
Trivially fix this by adding a NULL check for inode before attempting to lock it, returning -EINVAL if it is NULL.
Additionally, drop WARN_ON(!inode) in bpf_xattr_read_permission() and bpf_xattr_write_permission(). These warnings could be triggered by passing a negative dentry to bpf_get_dentry_xattr() or the _locked variants of the xattr kfuncs, potentially causing a Denial of Service on systems with panic_on_warn enabled. Instead, simply return -EINVAL.
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.13% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 56467292794b800164df20c076c409ac548e56ec, before e003f3a4be738f650e283e92d07017c3fef8da52 affected from 56467292794b800164df20c076c409ac548e56ec, before 0160edf2af51c5fde742973742c5d10497901b21 affected from 56467292794b800164df20c076c409ac548e56ec, before 07410646f6ff1d23222f105ccab778957d401bbe
Other versions: unaffected
|
| Linux |
affected 6.15 unaffected before 6.15 unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.5 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-74400 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-74400
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-74400
trivy image --scanners vuln IMAGE | grep CVE-2026-74400
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e003f3a4be738f650e283e92d07017c3fef8da52 git.kernel.org
- https://git.kernel.org/stable/c/0160edf2af51c5fde742973742c5d10497901b21 git.kernel.org
- https://git.kernel.org/stable/c/07410646f6ff1d23222f105ccab778957d401bbe git.kernel.org
Source: the record CVE-2026-74400 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse