CVE-2023-53307: rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails
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>.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel memory-safety flaw in the RBD driver error path. A local, low-privileged user could potentially trigger a use-after-free when RBD device creation fails, with possible full confidentiality, integrity, and availability impact according to CVSS.
Executive priority
Treat as high priority for shared Linux infrastructure or systems exposing local shell access. It is not remotely reachable from the supplied evidence, but kernel memory corruption with high impact warrants timely patch validation.
Technical view
CVE-2023-53307 is CWE-416 in Linux kernel rbd do_rbd_add(). If rbd_dev_create() fails while getting an ID or setting up a work queue, ownership is transferred too early and freed structures may be reused by the caller.
Likely exposure
Exposure is most relevant to Linux systems with affected kernel builds where the rbd driver code is present and local users have a path to exercise RBD device creation. Distribution backports may change exposure, so package-level advisory checks are necessary.
Exploitation context
The CVSS vector is local, low complexity, low privilege, and no user interaction. The bundle says KEV is false and provides no public exploitation evidence, so active exploitation is not established from these sources.
Researcher notes
The root cause is premature ownership transfer of rbd_client, spec, and opts before rbd_dev_create() can fail and free rbd_dev. The source bundle credits Linux Verification Center using SVACE and references multiple stable commits.
Mitigation direction
Apply kernel updates or vendor packages containing the referenced Linux stable fixes.
Check distribution advisories for backported fixes matching CVE-2023-53307.
Restrict local access to systems where untrusted users can reach RBD workflows.
Prioritize affected hosts using Ceph RBD or loading the rbd kernel module.
Validation and detection
Inventory Linux kernel versions and package release notes across managed hosts.
Check whether the rbd module is present, loaded, or operationally required.
Compare kernel source or changelog against the referenced stable commit IDs.
Confirm vulnerability scanner findings with vendor advisory status, not version strings alone.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
9Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.