# CVE-2026-23224: erofs: fix UAF issue for file-backed mounts w/ directio option

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-02-18T14:53:27.462Z
- **Modified:** 2026-08-05T12:20:42.343Z

## Who should check

- Anyone running Linux \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< ae385826840a3c8e09bf38cac90adcd690716f57; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< d741534302f71c511eb0bb670b92eaa7df4a0aec; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< 1caf50ce4af096d0280d59a31abdd85703cd995c
- Anyone running Linux 6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

erofs: fix UAF issue for file-backed mounts w/ directio option

\[    9.269940\]\[ T3222\] Call trace:
\[    9.269948\]\[ T3222\]  ext4\_file\_read\_iter+0xac/0x108
\[    9.269979\]\[ T3222\]  vfs\_iocb\_iter\_read+0xac/0x198
\[    9.269993\]\[ T3222\]  erofs\_fileio\_rq\_submit+0x12c/0x180
\[    9.270008\]\[ T3222\]  erofs\_fileio\_submit\_bio+0x14/0x24
\[    9.270030\]\[ T3222\]  z\_erofs\_runqueue+0x834/0x8ac
\[    9.270054\]\[ T3222\]  z\_erofs\_read\_folio+0x120/0x220
\[    9.270083\]\[ T3222\]  filemap\_read\_folio+0x60/0x120
\[    9.270102\]\[ T3222\]  filemap\_fault+0xcac/0x1060
\[    9.270119\]\[ T3222\]  do\_pte\_missing+0x2d8/0x1554
\[    9.270131\]\[ T3222\]  handle\_mm\_fault+0x5ec/0x70c
\[    9.270142\]\[ T3222\]  do\_page\_fault+0x178/0x88c
\[    9.270167\]\[ T3222\]  do\_translation\_fault+0x38/0x54
\[    9.270183\]\[ T3222\]  do\_mem\_abort+0x54/0xac
\[    9.270208\]\[ T3222\]  el0\_da+0x44/0x7c
\[    9.270227\]\[ T3222\]  el0t\_64\_sync\_handler+0x5c/0xf4
\[    9.270253\]\[ T3222\]  el0t\_64\_sync+0x1bc/0x1c0

EROFS may encounter above panic when enabling file-backed mount w/
directio mount option, the root cause is it may suffer UAF in below
race condition:

- z\_erofs\_read\_folio                          wq s\_dio\_done\_wq
 - z\_erofs\_runqueue
  - erofs\_fileio\_submit\_bio
   - erofs\_fileio\_rq\_submit
    - vfs\_iocb\_iter\_read
     - ext4\_file\_read\_iter
      - ext4\_dio\_read\_iter
       - iomap\_dio\_rw
       : bio was submitted and return -EIOCBQUEUED
                                              - dio\_aio\_complete\_work
                                               - dio\_complete
                                                - dio-\>iocb-\>ki\_complete (erofs\_fileio\_ki\_complete())
                                                 - kfree(rq)
                                                 : it frees iocb, iocb.ki\_filp can be UAF in file\_accessed().
       - file\_accessed
       : access NULL file point

Introduce a reference count in struct erofs\_fileio\_rq, and initialize it
as two, both erofs\_fileio\_ki\_complete() and erofs\_fileio\_rq\_submit() will
decrease reference count, the last one decreasing the reference count
to zero will free rq.

## Affected and fixed versions

- Linux: \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< ae385826840a3c8e09bf38cac90adcd690716f57; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< d741534302f71c511eb0bb670b92eaa7df4a0aec; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< 1caf50ce4af096d0280d59a31abdd85703cd995c (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 1caf50ce4af096d0280d59a31abdd85703cd995c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23224. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23224.md
Affected: Linux >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < ae385826840a3c8e09bf38cac90adcd690716f57; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < d741534302f71c511eb0bb670b92eaa7df4a0aec; >= fb176750266a3d7f42ebdcf28e8ba40350b27847, < b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa; >= fb176750266a3d7f42ebdcf…
Fixed in: Linux 1caf50ce4af096d0280d59a31abdd85703cd995c

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.
```

## FAQ

### Is CVE-2026-23224 being exploited?

There is no confirmed exploitation: CVE-2026-23224 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23224?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23224?

Linux \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< ae385826840a3c8e09bf38cac90adcd690716f57; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< d741534302f71c511eb0bb670b92eaa7df4a0aec; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa; \>= fb176750266a3d7f42ebdcf28e8ba40350b27847, \< 1caf50ce4af096d0280d59a31abdd85703cd995c; Linux 6.12.

### Is there a fix for CVE-2026-23224?

Yes. Fixed in Linux 1caf50ce4af096d0280d59a31abdd85703cd995c. Upgrade Linux to 1caf50ce4af096d0280d59a31abdd85703cd995c or later.

### How do I check if I'm affected by CVE-2026-23224?

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.

## References

- patch: <https://git.kernel.org/stable/c/ae385826840a3c8e09bf38cac90adcd690716f57>
- patch: <https://git.kernel.org/stable/c/d741534302f71c511eb0bb670b92eaa7df4a0aec>
- patch: <https://git.kernel.org/stable/c/b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa>
- patch: <https://git.kernel.org/stable/c/1caf50ce4af096d0280d59a31abdd85703cd995c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23224>

HTML: <https://flawdb.com/CVE-2026-23224> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23224>
