CVE-2025-38709
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| linux_kernel | linux | 6.16.2, 6.15.11, 6.12.43, 6.6.109 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 89e4fdecb51cf5535867026274bc97de9480ade5, 89e4fdecb51cf5535867026274bc97de9480ade5, 89e4fdecb51cf5535867026274bc97de9480ade5 |
| Linux | Linux | 4.14, 0, 6.1.191 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| linux | linux_kernel | 4.14, 4.14, 4.14 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Linux | Linux | 6.17, 6.1.191, 6.6.109 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
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