CVE-2023-52837

Source
https://cve.org/CVERecord?id=CVE-2023-52837
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52837.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-52837
Downstream
Related
Published
2024-05-21T15:31:37Z
Modified
2026-08-12T03:51:13Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
nbd: fix uaf in nbd_open
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52837.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4af5f2e0301311f88c420fcfc5f3c8611ade20ac
Fixed
4e9b3ec84dc97909876641dad14e0a2300d6c2a3
Fixed
879947f4180bc6e83af64eb0515e0cf57fce15db
Fixed
56bd7901b5e9dbc9112036ea615ebcba1565fafe
Fixed
327462725b0f759f093788dfbcb2f1fd132f956b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52837.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.14.0
Fixed
6.1.63
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.5.12
Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52837.json"