# CVE-2023-53366: block: be a bit more careful in checking for NULL bdev while polling

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-17T14:56:54.604Z
- **Modified:** 2026-06-17T06:45:06.717Z

## Who should check

- Anyone running Linux \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 1af0bdca03f367874da45d6cbe05fa05b90b1439; \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 0510d5e654d05053ed0e6309a9b42043ac9903ab; \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 310726c33ad76cebdee312dbfafc12c1b44bf977
- Anyone running Linux 5.15

## Description

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

block: be a bit more careful in checking for NULL bdev while polling

Wei reports a crash with an application using polled IO:

PGD 14265e067 P4D 14265e067 PUD 47ec50067 PMD 0
Oops: 0000 \[\#1\] SMP
CPU: 0 PID: 21915 Comm: iocore\_0 Kdump: loaded Tainted: G S                5.12.0-0\_fbk12\_clang\_7346\_g1bb6f2e7058f \#1
Hardware name: Wiwynn Delta Lake MP T8/Delta Lake-Class2, BIOS Y3DLM08 04/10/2022
RIP: 0010:bio\_poll+0x25/0x200
Code: 0f 1f 44 00 00 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28 65 48 8b 04 25 28 00 00 00 48 89 44 24 20 48 8b 47 08 \<48\> 8b 80 70 02 00 00 4c 8b 70 50 8b 6f 34 31 db 83 fd ff 75 25 65
RSP: 0018:ffffc90005fafdf8 EFLAGS: 00010292
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 74b43cd65dd66600
RDX: 0000000000000003 RSI: ffffc90005fafe78 RDI: ffff8884b614e140
RBP: ffff88849964df78 R08: 0000000000000000 R09: 0000000000000008
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88849964df00
R13: ffffc90005fafe78 R14: ffff888137d3c378 R15: 0000000000000001
FS:  00007fd195000640(0000) GS:ffff88903f400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000270 CR3: 0000000466121001 CR4: 00000000007706f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 55555554
Call Trace:
 iocb\_bio\_iopoll+0x1d/0x30
 io\_do\_iopoll+0xac/0x250
 \_\_se\_sys\_io\_uring\_enter+0x3c5/0x5a0
 ? \_\_x64\_sys\_write+0x89/0xd0
 do\_syscall\_64+0x2d/0x40
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
RIP: 0033:0x94f225d
Code: 24 cc 00 00 00 41 8b 84 24 d0 00 00 00 c1 e0 04 83 e0 10 41 09 c2 8b 33 8b 53 04 4c 8b 43 18 4c 63 4b 0c b8 aa 01 00 00 0f 05 \<85\> c0 0f 88 85 00 00 00 29 03 45 84 f6 0f 84 88 00 00 00 41 f6 c7
RSP: 002b:00007fd194ffcd88 EFLAGS: 00000202 ORIG\_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 00007fd194ffcdc0 RCX: 00000000094f225d
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007fd194ffcdb0 R08: 0000000000000000 R09: 0000000000000008
R10: 0000000000000001 R11: 0000000000000202 R12: 00007fd269d68030
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000

which is due to bio-\>bi\_bdev being NULL. This can happen if we have two
tasks doing polled IO, and task B ends up completing IO from task A if
they are sharing a poll queue. If task B completes the IO and puts the
bio into our cache, then it can allocate that bio again before task A
is done polling for it. As that would necessitate a preempt between the
two tasks, it's enough to just be a bit more careful in checking for
whether or not bio-\>bi\_bdev is NULL.

## Affected and fixed versions

- Linux: \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 1af0bdca03f367874da45d6cbe05fa05b90b1439; \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 0510d5e654d05053ed0e6309a9b42043ac9903ab; \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 310726c33ad76cebdee312dbfafc12c1b44bf977 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 310726c33ad76cebdee312dbfafc12c1b44bf977 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53366.md
Affected: Linux >= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, < 1af0bdca03f367874da45d6cbe05fa05b90b1439; >= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, < 0510d5e654d05053ed0e6309a9b42043ac9903ab; >= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, < 310726c33ad76cebdee312dbfafc12c1b44bf977; Linux 5.15
Fixed in: Linux 1af0bdca03f367874da45d6cbe05fa05b90b1439, Linux 0510d5e654d05053ed0e6309a9b42043ac9903ab, Linux 310726c33ad76cebdee312dbfafc12c1b44bf977

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-2023-53366 being exploited?

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

### How serious is CVE-2023-53366?

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

### Which versions are affected by CVE-2023-53366?

Linux \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 1af0bdca03f367874da45d6cbe05fa05b90b1439; \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 0510d5e654d05053ed0e6309a9b42043ac9903ab; \>= be4d234d7aebbfe0c233bc20b9cdef7ab3408ff4, \< 310726c33ad76cebdee312dbfafc12c1b44bf977; Linux 5.15.

### Is there a fix for CVE-2023-53366?

Yes. Fixed in Linux 1af0bdca03f367874da45d6cbe05fa05b90b1439, Linux 0510d5e654d05053ed0e6309a9b42043ac9903ab, Linux 310726c33ad76cebdee312dbfafc12c1b44bf977. Upgrade Linux to 310726c33ad76cebdee312dbfafc12c1b44bf977 or later.

### How do I check if I'm affected by CVE-2023-53366?

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/1af0bdca03f367874da45d6cbe05fa05b90b1439>
- patch: <https://git.kernel.org/stable/c/0510d5e654d05053ed0e6309a9b42043ac9903ab>
- patch: <https://git.kernel.org/stable/c/310726c33ad76cebdee312dbfafc12c1b44bf977>

## 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-2023-53366>

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