CVE-2025-38709: loop: Avoid updating block size under exclusive owner

Published Sep 4, 2025
·
Updated

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 getblkslow() 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.

Affected Software

9 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.96.2-1
Linux Linux kernel<6.6.109
Linux Linux kernel>=6.7<6.12.43
Linux Linux kernel>=6.13<6.15.11
Linux Linux kernel>=6.16<6.16.2
Microsoft cbl2 kernel 5.15.186.1-1
Microsoft azl3 kernel 6.6.96.2-2<6.6.104.2-1
6.6.104.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.104.2-1
  2. Compensating control

    Ensure the loop device is not exclusively held by another component (e.g., a mounted filesystem) before changing the loop device block size; otherwise, the block size update may be blocked or cause confusion in buffer/superblock handling.

Event History

Sep 4, 2025
CVE Published
via MITRE·03:32 PM
Data Sourced
via MITRE·03:32 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityAffected Software
Sep 6, 2025
Data Sourced
via Microsoft·01:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:03 AM
SeverityAffected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity
Updated
via Microsoft·08:03 AM
SeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38709?

CVE-2025-38709 has been classified as a moderate severity vulnerability due to its potential impact on systems using loop devices.

2

How do I fix CVE-2025-38709?

To fix CVE-2025-38709, you should update your Linux kernel to the latest stable version that addresses this vulnerability.

3

What systems are affected by CVE-2025-38709?

CVE-2025-38709 affects systems running the Linux kernel that utilize loop devices for mounting filesystems.

4

What is the nature of the vulnerability in CVE-2025-38709?

CVE-2025-38709 involves a flaw in handling block sizes of loop devices, which can lead to inconsistencies when filesystems are mounted.

5

Is there any known exploit for CVE-2025-38709?

As of now, there are no public exploits specifically targeting CVE-2025-38709, but it is recommended to address the vulnerability promptly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203