SecurityContext

CVE-2023-52837: Linux Kernel - Use After Free

  • Cve: CVE-2023-52837
  • Name: Linux Kernel - Use After Free
  • 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.
  • Impact: Potential for use-after-free leading to kernel panic, privilege escalation, or arbitrary code execution.
  • Remediation: Apply the patch that implements ->free_disk and properly frees private data, or update to the latest kernel version where this fix is included.
  • Vulnerability type: use_after_free
  • Vulnerability impact: privilege_escalation, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00248
  • Epss percentile: 0.16237
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2024-05-21T16:15:21Z
  • Age in days: 917
  • Modified at: 2026-08-04T10:18:45Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-52837
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

References

Same in every row:

  • Source: nvd
  • Tags: Patch
Url
https://git.kernel.org/stable/c/327462725b0f759f093788dfbcb2f1fd132f956b
https://git.kernel.org/stable/c/4e9b3ec84dc97909876641dad14e0a2300d6c2a3
https://git.kernel.org/stable/c/56bd7901b5e9dbc9112036ea615ebcba1565fafe
https://git.kernel.org/stable/c/879947f4180bc6e83af64eb0515e0cf57fce15db

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.6, < 6.6.2; >= 6.2, < 6.5.12; >= 5.14, < 6.1.63nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports