CVE-2023-53307

rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails

HIGH
7.8
CVSS Score
Published: September 16, 2025 at 04:11 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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 <[email protected]>.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.15 ≤ v < 4.19.2764.20 ≤ v < 5.4.2354.9 ≤ v < 4.14.3084.9 ≤ v < 4.19.2764.9 ≤ v < 5.10.1734.9 ≤ v < 5.15.994.9 ≤ v < 5.4.2354.9 ≤ v < 6.1.164.9 ≤ v < 6.2.34.9 ≤ v < 6.35.11 ≤ v < 5.15.995.16 ≤ v < 6.1.165.5 ≤ v < 5.10.1736.2 ≤ v < 6.2.31643dfa4c2c827d6e2aa419df8c17b0f240902784.9
Vendor states this is fixed in 71da2a151ed1adb0aea4252b16d81b53012e7afd (fixed)
Vendor states this is fixed in 9787b328c42c13c4f31e7d5042c4e877e9344068 (fixed)
Vendor states this is fixed in a73783e4e0c4d1507794da211eeca75498544dff (fixed)
Vendor states this is fixed in ae16346078b1189aee934afd872d9f3d0a682c33 (fixed)
Vendor states this is fixed in cc8c0dd2984503ed09efa37bcafcef3d3da104e8 (fixed)
Vendor states this is fixed in e3cbb4d60764295992c95344f2d779439e8b34ce (fixed)
Vendor states this is fixed in f7c4d9b133c7a04ca619355574e96b6abf209fba (fixed)
Vendor states this is fixed in faa7b683e436664fff5648426950718277831348 (fixed)
Vendor states this is fixed in 4.14.308 (unaffected)
Vendor states this is fixed in 4.19.276 (unaffected)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 5.10.173 (unaffected)
Vendor states this is fixed in 5.15.99 (unaffected)
Vendor states this is fixed in 5.4.235 (unaffected)
Vendor states this is fixed in 6.1.16 (unaffected)
Vendor states this is fixed in 6.2.3 (unaffected)
Vendor states this is fixed in 6.3 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card