VDB

CVE-2026-74321

CVE-2026-74321 PUBLISHED CVSS 7.5 HIGH

btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()

Reported by linux · Published August 15, 2026

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs() In the beginning of the loop, we try to obtain a locked delayed ref head, if 'locked_ref' is currently NULL, by calling btrfs_select_ref_head(), which can return an error pointer. If the error pointer is -EAGAIN we do a continue and go back to the beginning of the loop, which will not try again to call btrfs_select_ref_head() since 'locked_ref' is no longer NULL but it's ERR_PTR(-EAGAIN), and then we do: spin_lock(&locked_ref->lock); against a ERR_PTR(-EAGAIN) value, generating an invalid pointer dereference. Fix this by ensuring that 'locked_ref' is set to NULL when btrfs_select_ref_head() returns ERR_PTR(-EAGAIN) and incrementing 'count' as well, to prevent infinite looping. We do this by doing a goto to the bottom of the loop that already sets 'locked_ref' to NULL and does a cond_resched(), with an increment to 'count' right before the goto. These measures were in place before the refactoring in commit 0110a4c43451 ("btrfs: refactor __btrfs_run_delayed_refs loop") but were unintentionally lost afterwards.

Fixed versions

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

PackageEcosystemFixed in
kernel-headersAmazon Linux1:6.1.180-225.360.amzn2023
bpftool6.12Amazon Linux1:6.12.100-125.179.amzn2023
bpftool6.18Amazon Linux1:6.18.41-94.142.amzn2023
kernel-tools-develAmazon Linux1:6.1.180-225.360.amzn2023
python3-perfAmazon Linux1:6.1.180-225.360.amzn2023
kernel6.12-headersAmazon Linux1:6.12.100-125.179.amzn2023
kernel-livepatch-6.18.41-94.142Amazon Linux1:1.0-0.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.100-125.179.amzn2023

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux0110a4c43451533de1ea1bbdc57b5d452f9d8b25, 0110a4c43451533de1ea1bbdc57b5d452f9d8b25, 0110a4c43451533de1ea1bbdc57b5d452f9d8b25
LinuxLinux4.20, 0, 5.10.261
amazon:2023kernel-headers0
amazon:2023bpftool6.120
amazon:2023bpftool6.180
amazon:2023kernel-tools-devel0
amazon:2023python3-perf0
amazon:2023kernel6.12-headers0
amazon:2023kernel-livepatch-6.18.41-94.1420
amazon:2023kernel6.12-modules-extra0
LinuxLinux0110a4c43451533de1ea1bbdc57b5d452f9d8b25, 7.2, 7.1.5
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.180
amazon:2023kernel6.12-tools0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel-tools0
amazon:2023kernel-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023microvm-kernel6.180

…and 18 more

Timeline

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

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-74321
vulnetix vdb fixes CVE-2026-74321

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-74321/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 ›