# CVE-2023-53307: rbd: avoid use-after-free in do\_rbd\_add() when rbd\_dev\_create() fails

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-16T16:11:46.288Z
- **Modified:** 2026-06-17T06:44:48.370Z

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

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

- Linux: \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< 71da2a151ed1adb0aea4252b16d81b53012e7afd; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< e3cbb4d60764295992c95344f2d779439e8b34ce; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< 9787b328c42c13c4f31e7d5042c4e877e9344068; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< ae16346078b1189aee934afd872d9f3d0a682c33; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< a73783e4e0c4d1507794da211eeca75498544dff; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< faa7b683e436664fff5648426950718277831348; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< cc8c0dd2984503ed09efa37bcafcef3d3da104e8; \>= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, \< f7c4d9b133c7a04ca619355574e96b6abf209fba (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd>
- patch: <https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce>
- patch: <https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068>
- patch: <https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33>
- patch: <https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff>
- patch: <https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348>
- patch: <https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8>
- patch: <https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba>

## 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-53307>

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