# CVE-2026-23265: f2fs: fix to do sanity check on node footer in {read,write}_end_io

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-03-18T17:44:48.031Z
- Modified: 2026-06-17T10:21:12.907Z
- Assigned by: Linux

## Description

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

f2fs: fix to do sanity check on node footer in {read,write}_end_io

-----------[ cut here ]------------
kernel BUG at fs/f2fs/data.c:358!
Call Trace:
 <IRQ>
 blk_update_request+0x5eb/0xe70 block/blk-mq.c:987
 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1149
 blk_complete_reqs block/blk-mq.c:1224 [inline]
 blk_done_softirq+0x107/0x160 block/blk-mq.c:1229
 handle_softirqs+0x283/0x870 kernel/softirq.c:579
 __do_softirq kernel/softirq.c:613 [inline]
 invoke_softirq kernel/softirq.c:453 [inline]
 __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050
 </IRQ>

In f2fs_write_end_io(), it detects there is inconsistency in between
node page index (nid) and footer.nid of node page.

If footer of node page is corrupted in fuzzed image, then we load corrupted
node page w/ async method, e.g. f2fs_ra_node_pages() or f2fs_ra_node_page(),
in where we won't do sanity check on node footer, once node page becomes
dirty, we will encounter this bug after node page writeback.

(As written by CVE List.)

## Affected

- Linux Linux: from e05df3b115e7308afbca652769b54e4549fcc723 before 855c54f1803e3ebc613677b4f389c7f92656a1fc; from e05df3b115e7308afbca652769b54e4549fcc723 before c386753db52b3a80afa6612bfdcb925aa5ca260f; from e05df3b115e7308afbca652769b54e4549fcc723 before 50ac3ecd8e05b6bcc350c71a4307d40c030ec7e4; 3.8 (not affected: before 3.8; from 6.18.13 up to 6.18.*; from 6.19.3 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 3.8 before 6.18.13; from 6.19 before 6.19.3

## References

- <https://git.kernel.org/stable/c/855c54f1803e3ebc613677b4f389c7f92656a1fc> (patch)
- <https://git.kernel.org/stable/c/c386753db52b3a80afa6612bfdcb925aa5ca260f> (patch)
- <https://git.kernel.org/stable/c/50ac3ecd8e05b6bcc350c71a4307d40c030ec7e4> (patch)

## Sources

- CVE List: [CVE-2026-23265](https://www.cve.org/CVERecord?id=CVE-2026-23265), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23265](https://nvd.nist.gov/vuln/detail/CVE-2026-23265), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23265 · Whole record: https://cve.day/CVE-2026-23265.json · Rebuilt by cve.day 2026-11-25T22:59:16.120Z
