CVE-2023-53307
rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 71da2a151ed1adb0aea4252b16d81b53012e7afd; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < e3cbb4d60764295992c95344f2d779439e8b34ce; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 9787b328c42c13c4f31e7d5042c4e877e9344068; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < ae16346078b1189aee934afd872d9f3d0a682c33; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < a73783e4e0c4d1507794da211eeca75498544dff; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < faa7b683e436664fff5648426950718277831348; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < cc8c0dd2984503ed09efa37bcafcef3d3da104e8; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < f7c4d9b133c7a04ca619355574e96b6abf209fba
- Anyone running Linux 4.9
Vulnerability facts
- Affected
- Linux >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 71da2a151ed1adb0aea4252b16d81b53012e7afd; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < e3cbb4d60764295992c95344f2d779439e8b34ce; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 9787b328c42c13c4f31e7d5042c4e877e9344068; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < ae16346078b1189aee934afd872d9f3d0a682c33; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < a73783e4e0c4d1507794da211eeca75498544dff; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < faa7b683e436664fff5648426950718277831348; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < cc8c0dd2984503ed09efa37bcafcef3d3da104e8; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < f7c4d9b133c7a04ca619355574e96b6abf209fba; Linux 4.9
- Fixed in
- Linux 71da2a151ed1adb0aea4252b16d81b53012e7afd, Linux 9787b328c42c13c4f31e7d5042c4e877e9344068
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails If getting an ID or setting up a work queue in rbd_dev_create() fails, use-after-free on rbd_dev->rbd_client, rbd_dev->spec and rbd_dev->opts is triggered in do_rbd_add(). The root cause is that the ownership of these structures is transfered to rbd_dev prematurely and they all end up getting freed when rbd_dev_create() calls rbd_dev_free() prior to returning to do_rbd_add(). Found by Linux Verification Center (linuxtesting.org) with SVACE, an incomplete patch submitted by Natalia Petrova <n.petrova@fintech.ru>.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 71da2a151ed1adb0aea4252b16d81b53012e7afd; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < e3cbb4d60764295992c95344f2d779439e8b34ce; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 9787b328c42c13c4f31e7d5042c4e877e9344068; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < ae16346078b1189aee934afd872d9f3d0a682c33; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < a73783e4e0c4d1507794da211eeca75498544dff; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < faa7b683e436664fff5648426950718277831348; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < cc8c0dd2984503ed09efa37bcafcef3d3da104e8; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < f7c4d9b133c7a04ca619355574e96b6abf209fba | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53307. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53307.md Affected: Linux >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 71da2a151ed1adb0aea4252b16d81b53012e7afd; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < e3cbb4d60764295992c95344f2d779439e8b34ce; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 9787b328c42c13c4f31e7d5042c4e877e9344068; >= 1643dfa4c2c827d6e2aa419… Fixed in: Linux 71da2a151ed1adb0aea4252b16d81b53012e7afd, Linux 9787b328c42c13c4f31e7d5042c4e877e9344068 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.
References
Patches
- https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd
- https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce
- https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068
- https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33
- https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff
- https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348
- https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8
- https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba
FAQ
Is CVE-2023-53307 being exploited?
There is no confirmed exploitation: CVE-2023-53307 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53307?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-53307?
Linux >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 71da2a151ed1adb0aea4252b16d81b53012e7afd; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < e3cbb4d60764295992c95344f2d779439e8b34ce; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 9787b328c42c13c4f31e7d5042c4e877e9344068; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < ae16346078b1189aee934afd872d9f3d0a682c33; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < a73783e4e0c4d1507794da211eeca75498544dff; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < faa7b683e436664fff5648426950718277831348; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < cc8c0dd2984503ed09efa37bcafcef3d3da104e8; >= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < f7c4d9b133c7a04ca619355574e96b6abf209fba; Linux 4.9.
Is there a fix for CVE-2023-53307?
Yes. Fixed in Linux 71da2a151ed1adb0aea4252b16d81b53012e7afd, Linux 9787b328c42c13c4f31e7d5042c4e877e9344068. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-53307?
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.