VDB

CVE-2026-74400

CVE-2026-74400 PUBLISHED

bpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries

Reported by linux · Published August 15, 2026

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.

EPSS 0.21% · 10.7th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-develAmazon Linux1:6.18.41-94.142.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.41-94.142.amzn2023

Risk scores

EPSS Score
0.21%
10.7th percentile

Affected products

VendorProductVersions
LinuxLinux56467292794b800164df20c076c409ac548e56ec, 56467292794b800164df20c076c409ac548e56ec, 56467292794b800164df20c076c409ac548e56ec
LinuxLinux6.15, 0, 6.18.40
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-tools-devel0
linuxlinux_kernel6.15, 6.15, 6.15
amazon:2023kernel6.18-headers0
amazon:2023bpftool6.180
amazon:2023python3-perf6.180
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023perf6.180
LinuxLinux7.2, 6.18.40, 7.1.5
amazon:2023kernel-livepatch-6.18.41-94.1420
amazon:2023kernel6.180

Timeline

  • Aug 15, 2026 CVE Published
  • Aug 17, 2026 CVE Updated
  • Aug 19, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score (14 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-74400
vulnetix vdb fixes CVE-2026-74400

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-74400/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›