CVE-2023-52837

nbd: fix uaf in nbd_open

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 03:31 PM UTC
Updated: August 5, 2026 at 10:24 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.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: nbd: fix uaf in nbd_open Commit 4af5f2e03013 ("nbd: use blk_mq_alloc_disk and blk_cleanup_disk") cleans up disk by blk_cleanup_disk() and it won't set disk->private_data as NULL as before. UAF may be triggered in nbd_open() if someone tries to open nbd device right after nbd_put() since nbd has been free in nbd_dev_remove(). Fix this by implementing ->free_disk and free private data in it.

Affected

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

5.14 ≤ v < 6.1.635.14 ≤ v < 6.5.125.14 ≤ v < 6.6.25.14 ≤ v < 6.76.2 ≤ v < 6.5.126.6 ≤ v < 6.6.24af5f2e0301311f88c420fcfc5f3c8611ade20ac5.14
Vendor states this is fixed in 327462725b0f759f093788dfbcb2f1fd132f956b (fixed)
Vendor states this is fixed in 4e9b3ec84dc97909876641dad14e0a2300d6c2a3 (fixed)
Vendor states this is fixed in 56bd7901b5e9dbc9112036ea615ebcba1565fafe (fixed)
Vendor states this is fixed in 879947f4180bc6e83af64eb0515e0cf57fce15db (fixed)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 6.1.63 (unaffected)
Vendor states this is fixed in 6.5.12 (unaffected)
Vendor states this is fixed in 6.6.2 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/327462725b0f759f093788dfbcb2f1fd132f956b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4e9b3ec84dc97909876641dad14e0a2300d6c2a3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/56bd7901b5e9dbc9112036ea615ebcba1565fafe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/879947f4180bc6e83af64eb0515e0cf57fce15db

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

7.8HIGHLinux
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