CVE-2025-38172
published high CVSS 3.1 · 7.8erofs: avoid using multiple devices with different type
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxfb176750266a3d7f42ebdcf28e8ba40350b27847 to < 65115472f741ca000d7ea4a5922214f93cd1516e · fb176750266a3d7f42ebdcf28e8ba40350b27847 to < cd04beb9ce2773a16057248bb4fa424068ae3807 · fb176750266a3d7f42ebdcf28e8ba40350b27847 to < 9748f2f54f66743ac77275c34886a9f890e18409 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.34 through 6.12.* (unaffected · semver) · 6.15.3 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1080 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-124.38.1.el10_1 | ALSA-2026:2721 |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernelaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-124.38.1.el10_1 | ALSA-2026:2721 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-tools-libsaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-tools-libsx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-tools-libs-develaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-tools-libs-develx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-uki-virtx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | libperfaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | libperfx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | perfaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | perfx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | python3-perfaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | python3-perfx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | rtlaaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | rtlax86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | rvaarch64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Oracle Linux | 10 | rvx86_64 | Advisory build | 0:6.12.0-124.38.1.el10_1 | ELSA-2026-2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernelaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernelppc64le | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernelppc64le | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernels390x | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernels390x | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernelsrc | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernelsrc | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernelx86_64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernelx86_64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64kaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64kaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-coreaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-coreaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debugaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debugaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-coreaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-coreaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-debuginfoaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-debuginfoaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-develaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-develaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-devel-matchedaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-devel-matchedaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-modulesaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-modulesaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-modules-coreaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-modules-coreaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-modules-extraaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debug-modules-extraaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debuginfoaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-debuginfoaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-develaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-develaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-devel-matchedaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-devel-matchedaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-modulesaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-modulesaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-modules-coreaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-modules-coreaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-modules-extraaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-64k-modules-extraaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-abi-stablelistsnoarch | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-abi-stablelistsnoarch | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-coreaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-coreaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-coreppc64le | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-coreppc64le | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-cores390x | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-cores390x | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-corex86_64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-corex86_64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-debugaarch64 | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-debugaarch64 | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-debugppc64le | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-debugppc64le | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-debugs390x | Advisory build | 6.12.0-124.38.1.el10_1 | RHSA-2026:2721 |
| Red Hat Enterprise Linux | RHEL-10 | kernel-debugs390x | Advisory build | 6.12.0-55.58.1.el10_0 | RHSA-2026:1727 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached only through the local mount(2)/fsconfig(2)+fsmount(2) filesystem-mount path on an erofs image plus its `device=` parameters; there is no network-facing consumer of this code. AC:L - The trigger is fully deterministic — an erofs image whose on-disk device table count matches the supplied `device=` options, with one such path naming a regular file instead of a block device, reliably yields -ENOTBLK and the use-after-free write on every attempt. Heap reuse of the freed `erofs_sb_info` is attacker-assisted because the free→write window spans an attacker-influenceable `filp_open()` path walk that can be stalled arbitrarily, and the spray runs from the attacker's own threads. PR:N - The attacker needs no account or capability on the target: they only supply the malicious erofs image and/or arrange the `device=` path (which is resolved with symlink following at fill_super time, in directories such as container blob/staging dirs) to be a non-block file, while a privileged mounter — automounter, container/composefs runtime, or mount helper handling multi-device erofs images — performs the mount. This matches the kernel CNA treatment of crafted-image mount bugs (e.g. CVE-2025-38204, CVE-2025-38230, CVE-2025-38652). UI:R - The flaw only fires when someone mounts the attacker-supplied erofs image with the corresponding `device=` parameters; it cannot be triggered without that mount action. S:U - The freed object, the corrupted slab memory, and the resulting crash or escalation are all inside the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - `file_inode(sbi->dif0.file)->i_mode` is read back out of the freed `erofs_sb_info`; if a sprayed object has taken the slot the kernel dereferences an attacker-groomed pointer and reads memory at an attacker-chosen location, and use-after-free of a kmalloc object is generally leverageable into kernel-memory disclosure. I:H - `sbi->dif0.file = file` writes a valid kernel `struct file *` at a fixed offset (16) into a freed generic-kmalloc chunk, clobbering whatever live object has been reallocated there — a classic UAF write primitive that overwrites pointers/state of an unrelated kernel object and is a strong stepping stone to control-flow hijacking. A:H - Even without grooming, the UAF read of poisoned/reused memory and the follow-on `get_tree_nodev()` path (which calls `erofs_fc_fill_super()` with `s_fs_info == NULL`, immediately writing through a NULL `sbi`) produce a kernel oops/panic, and the path also leaks a `struct file` reference on every attempt.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | fb176750266a3d7f42ebdcf28e8ba40350b27847 to < 65115472f741ca000d7ea4a5922214f93cd1516e (affected · git)fb176750266a3d7f42ebdcf28e8ba40350b27847 to < cd04beb9ce2773a16057248bb4fa424068ae3807 (affected · git)fb176750266a3d7f42ebdcf28e8ba40350b27847 to < 9748f2f54f66743ac77275c34886a9f890e18409 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.34 through 6.12.* (unaffected · semver)6.15.3 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
erofs: avoid using multiple devices with different type
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1f777abcaf5679cec8501ffd616bf8e01cac96d0d5e2fc8663021e5e72ce6fea
- Ingested
- 23 Sep 2026, 08:46:29 UTC
- Source record
- Official CVE record