VDB

CVE-2025-38709

CVE-2025-38709 PUBLISHED

loop: Avoid updating block size under exclusive owner

Reported by linux · Published September 4, 2025

In the Linux kernel, the following vulnerability has been resolved: loop: Avoid updating block size under exclusive owner Syzbot came up with a reproducer where a loop device block size is changed underneath a mounted filesystem. This causes a mismatch between the block device block size and the block size stored in the superblock causing confusion in various places such as fs/buffer.c. The particular issue triggered by syzbot was a warning in __getblk_slow() due to requested buffer size not matching block device block size. Fix the problem by getting exclusive hold of the loop device to change its block size. This fails if somebody (such as filesystem) has already an exclusive ownership of the block device and thus prevents modifying the loop device under some exclusive owner which doesn't expect it.

Fixed versions

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

PackageEcosystemFixed in
kernel6.12-libbpfAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-headersAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-develAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.46-66.121.amzn2023
linux_kernellinux6.16.2, 6.15.11, 6.12.43, 6.6.109

Affected products

VendorProductVersions
LinuxLinux89e4fdecb51cf5535867026274bc97de9480ade5, 89e4fdecb51cf5535867026274bc97de9480ade5, 89e4fdecb51cf5535867026274bc97de9480ade5
LinuxLinux4.14, 0, 6.1.191
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-libbpf-devel0
linuxlinux_kernel4.14, 4.14, 4.14
amazon:2023kernel-livepatch-6.12.46-66.1210
amazon:2023kernel6.12-modules-extra0
LinuxLinux6.17, 6.1.191, 6.6.109
amazon:2023perf6.120
amazon:2023kernel6.12-tools-devel0
amazon:2023bpftool6.120
amazon:2023kernel6.120
amazon:2023python3-perf6.120

Timeline

  • Sep 4, 2025 Coalition ESS Score (13 in total, the first dated here)
  • Sep 4, 2025 CVE Published
  • Sep 5, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (9 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (152 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (139 in total, the first dated here)
  • Oct 25, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38709
vulnetix vdb fixes CVE-2025-38709

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-2025-38709/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 ›