{"id":"CVE-2023-52837","aliases":["CVE-2023-52837"],"related":[],"kind":"vulnerability","state":"published","title":"nbd: fix uaf in nbd_open","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: fix uaf in nbd_open\n\nCommit 4af5f2e03013 (\"nbd: use blk_mq_alloc_disk and\nblk_cleanup_disk\") cleans up disk by blk_cleanup_disk() and it won't set\ndisk->private_data as NULL as before. UAF may be triggered in nbd_open()\nif someone tries to open nbd device right after nbd_put() since nbd has\nbeen free in nbd_dev_remove().\n\nFix this by implementing ->free_disk and free private data in it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: fix uaf in nbd_open\n\nCommit 4af5f2e03013 (\"nbd: use blk_mq_alloc_disk and\nblk_cleanup_disk\") cleans up disk by blk_cleanup_disk() and it won't set\ndisk->private_data as NULL as before. UAF may be triggered in nbd_open()\nif someone tries to open nbd device right after nbd_put() since nbd has\nbeen free in nbd_dev_remove().\n\nFix this by implementing ->free_disk and free private data in it.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: nbd: corrija uaf en nbd_open Commit 4af5f2e03013 (\"nbd: use blk_mq_alloc_disk y blk_cleanup_disk\") limpia el disco mediante blk_cleanup_disk() y no configurará disk-&gt;private_data como NULL como antes. UAF puede activarse en nbd_open() si alguien intenta abrir el dispositivo nbd justo después de nbd_put() ya que nbd ha estado libre en nbd_dev_remove(). Solucione este problema implementando -&gt;free_disk y datos privados gratuitos en él.","source":"nvd"}],"published":"2024-05-21T15:31:37.859Z","modified":"2026-08-05T09:11:37.586Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"4af5f2e0301311f88c420fcfc5f3c8611ade20ac","fixed":"4e9b3ec84dc97909876641dad14e0a2300d6c2a3","status":"affected"},{"type":"git","introduced":"4af5f2e0301311f88c420fcfc5f3c8611ade20ac","fixed":"879947f4180bc6e83af64eb0515e0cf57fce15db","status":"affected"},{"type":"git","introduced":"4af5f2e0301311f88c420fcfc5f3c8611ade20ac","fixed":"56bd7901b5e9dbc9112036ea615ebcba1565fafe","status":"affected"},{"type":"git","introduced":"4af5f2e0301311f88c420fcfc5f3c8611ade20ac","fixed":"327462725b0f759f093788dfbcb2f1fd132f956b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"6.1.63","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.12","lastAffected":"6.5.*","status":"unaffected"},{"type":"semver","introduced":"6.6.2","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.14","fixed":"6.1.63"},{"status":"affected","introduced":"6.2","fixed":"6.5.12"},{"status":"affected","introduced":"6.6","fixed":"6.6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4e9b3ec84dc97909876641dad14e0a2300d6c2a3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/879947f4180bc6e83af64eb0515e0cf57fce15db","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/56bd7901b5e9dbc9112036ea615ebcba1565fafe","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/327462725b0f759f093788dfbcb2f1fd132f956b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-21T18:01:48.631Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52837","url":"https://www.cve.org/CVERecord?id=CVE-2023-52837","licence":"CVE Terms of Use","modified":"2026-08-05T09:11:37.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52837","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52837","licence":"Public domain","modified":"2026-08-04T10:18:45.457Z"}],"updatedAt":"2026-11-25T22:58:34.045Z","epss":{"score":0.00248,"percentile":0.17271,"date":"2026-12-01T12:00:22.000Z"}}