CVE-2023-53210

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53210
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53210.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53210
Downstream
Published
2025-09-15T15:15:47Z
Modified
2025-09-15T20:01:24Z
Summary
[none]
Details

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

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

r5lflushstripetoraid() will check if the list 'flushingios' is empty, and then submit 'flushbio', however, r5llogflush_endio() is clearing the list first and then clear the bio, which will cause null-ptr-deref:

T1: submit flush io raid5d handleactivestripes r5lflushstripetoraid // list is empty // add 'ioendios' to the list bioinit submitbio // io1

T2: io1 is done r5llogflushendio listsplicetailinit // clear the list T3: submit new flush io ... r5lflushstripetoraid // list is empty // add 'ioendios' to the list bioinit biouninit // clear bio->biblkg submitbio // null-ptr-deref

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

References

Affected packages