CVE-2025-38172
erofs: avoid using multiple devices with different type
Mitigation
- Upgrade Linux to 9748f2f54f66743ac77275c34886a9f890e18409 or later.
Who should check
- Anyone running Linux >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 65115472f741ca000d7ea4a5922214f93cd1516e; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < cd04beb9ce2773a16057248bb4fa424068ae3807; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 9748f2f54f66743ac77275c34886a9f890e18409
- Anyone running Linux 6.12
Vulnerability facts
- Affected
- Linux >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 65115472f741ca000d7ea4a5922214f93cd1516e; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < cd04beb9ce2773a16057248bb4fa424068ae3807; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 9748f2f54f66743ac77275c34886a9f890e18409; Linux 6.12
- Fixed in
- Linux 65115472f741ca000d7ea4a5922214f93cd1516e, Linux 9748f2f54f66743ac77275c34886a9f890e18409
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: erofs: avoid using multiple devices with different type For multiple devices, both primary and extra devices should be the same type. `erofs_init_device` has already guaranteed that if the primary is a file-backed device, extra devices should also be regular files. However, if the primary is a block device while the extra device is a file-backed device, `erofs_init_device` will get an ENOTBLK, which is not treated as an error in `erofs_fc_get_tree`, and that leads to an UAF: erofs_fc_get_tree get_tree_bdev_flags(erofs_fc_fill_super) erofs_read_superblock erofs_init_device // sbi->dif0 is not inited yet, // return -ENOTBLK deactivate_locked_super free(sbi) if (err is -ENOTBLK) sbi->dif0.file = filp_open() // sbi UAF So if -ENOTBLK is hitted in `erofs_init_device`, it means the primary device must be a block device, and the extra device is not a block device. The error can be converted to -EINVAL.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 65115472f741ca000d7ea4a5922214f93cd1516e; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < cd04beb9ce2773a16057248bb4fa424068ae3807; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 9748f2f54f66743ac77275c34886a9f890e18409 | — | cvelist |
| Linux | 6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38172. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38172.md Affected: Linux >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 65115472f741ca000d7ea4a5922214f93cd1516e; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < cd04beb9ce2773a16057248bb4fa424068ae3807; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 9748f2f54f66743ac77275c34886a9f890e18409; Linux 6.12 Fixed in: Linux 65115472f741ca000d7ea4a5922214f93cd1516e, Linux 9748f2f54f66743ac77275c34886a9f890e18409 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-38172 being exploited?
There is no confirmed exploitation: CVE-2025-38172 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38172?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-38172?
Linux >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 65115472f741ca000d7ea4a5922214f93cd1516e; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < cd04beb9ce2773a16057248bb4fa424068ae3807; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < 9748f2f54f66743ac77275c34886a9f890e18409; Linux 6.12.
Is there a fix for CVE-2025-38172?
Yes. Fixed in Linux 65115472f741ca000d7ea4a5922214f93cd1516e, Linux 9748f2f54f66743ac77275c34886a9f890e18409. Upgrade Linux to 9748f2f54f66743ac77275c34886a9f890e18409 or later.
How do I check if I'm affected by CVE-2025-38172?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.