# CVE-2023-53210: md/raid5-cache: fix null-ptr-deref for r5l_flush_stripe_to_raid()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:21:38.534Z
- Modified: 2026-06-17T06:44:30.913Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

md/raid5-cache: fix null-ptr-deref for r5l_flush_stripe_to_raid()

r5l_flush_stripe_to_raid() will check if the list 'flushing_ios' is
empty, and then submit 'flush_bio', however, r5l_log_flush_endio()
is clearing the list first and then clear the bio, which will cause
null-ptr-deref:

T1: submit flush io
raid5d
 handle_active_stripes
  r5l_flush_stripe_to_raid
   // list is empty
   // add 'io_end_ios' to the list
   bio_init
   submit_bio
   // io1

T2: io1 is done
r5l_log_flush_endio
 list_splice_tail_init
 // clear the list
			T3: submit new flush io
			...
			r5l_flush_stripe_to_raid
			 // list is empty
			 // add 'io_end_ios' to the list
			 bio_init
 bio_uninit
 // clear bio->bi_blkg
			 submit_bio
			 // null-ptr-deref

Fix this problem by clearing bio before clearing the list in
r5l_log_flush_endio().

(As written by CVE List.)

## Affected

- Linux Linux: from 0dd00cba99c352dc9afd62979f350d808c215cb9 before 711fb92606208a8626b785da4f9f23d648a5b6c8; from 0dd00cba99c352dc9afd62979f350d808c215cb9 before 7a8b6d93991bf4b72b3f959baea35397c6c8e521; from 0dd00cba99c352dc9afd62979f350d808c215cb9 before e46b2e7be8059d156af8c011dd8d665229b65886; from 0dd00cba99c352dc9afd62979f350d808c215cb9 before 0d0bd28c500173bfca78aa840f8f36d261ef1765; 5.18 (not affected: before 5.18; from 6.1.53 up to 6.1.*; from 6.4.16 up to 6.4.*; from 6.5.3 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 5.18 before 6.1.53; from 6.2 before 6.4.16; from 6.5 before 6.5.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/711fb92606208a8626b785da4f9f23d648a5b6c8> (patch)
- <https://git.kernel.org/stable/c/7a8b6d93991bf4b72b3f959baea35397c6c8e521> (patch)
- <https://git.kernel.org/stable/c/e46b2e7be8059d156af8c011dd8d665229b65886> (patch)
- <https://git.kernel.org/stable/c/0d0bd28c500173bfca78aa840f8f36d261ef1765> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53210 · Whole record: https://cve.day/CVE-2023-53210.json · Rebuilt by cve.day 2026-11-25T22:58:34.776Z
