Bluetooth: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc()
cve-program · CVE-2024-56604
PublishedIn the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc() bt_sock_alloc() attaches allocated sk object to the provided sock object. If rfcomm_dlc_alloc() fails, we release the sk object, but leave the dangling pointer in the sock object, which may cause use-after-free. Fix this by swapping calls to bt_sock_alloc() and rfcomm_dlc_alloc().
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2024-56604 · CVE overview and exploitation status
cve-program · CVE-2024-56604
Related changes
Linked by CVE identifierNo related changes are available here.