{
  "threat_severity" : "Moderate",
  "public_date" : "2025-12-16T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: Bluetooth: hci_sock: Prevent race in socket write iter and sock bind",
    "id" : "2422840",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2422840"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.4",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-366",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nBluetooth: hci_sock: Prevent race in socket write iter and sock bind\nThere is a potential race condition between sock bind and socket write\niter. bind may free the same cmd via mgmt_pending before write iter sends\nthe cmd, just as syzbot reported in UAF[1].\nHere we use hci_dev_lock to synchronize the two, thereby avoiding the\nUAF mentioned in [1].\n[1]\nsyzbot reported:\nBUG: KASAN: slab-use-after-free in mgmt_pending_remove+0x3b/0x210 net/bluetooth/mgmt_util.c:316\nRead of size 8 at addr ffff888077164818 by task syz.0.17/5989\nCall Trace:\nmgmt_pending_remove+0x3b/0x210 net/bluetooth/mgmt_util.c:316\nset_link_security+0x5c2/0x710 net/bluetooth/mgmt.c:1918\nhci_mgmt_cmd+0x9c9/0xef0 net/bluetooth/hci_sock.c:1719\nhci_sock_sendmsg+0x6ca/0xef0 net/bluetooth/hci_sock.c:1839\nsock_sendmsg_nosec net/socket.c:727 [inline]\n__sock_sendmsg+0x21c/0x270 net/socket.c:742\nsock_write_iter+0x279/0x360 net/socket.c:1195\nAllocated by task 5989:\nmgmt_pending_add+0x35/0x140 net/bluetooth/mgmt_util.c:296\nset_link_security+0x557/0x710 net/bluetooth/mgmt.c:1910\nhci_mgmt_cmd+0x9c9/0xef0 net/bluetooth/hci_sock.c:1719\nhci_sock_sendmsg+0x6ca/0xef0 net/bluetooth/hci_sock.c:1839\nsock_sendmsg_nosec net/socket.c:727 [inline]\n__sock_sendmsg+0x21c/0x270 net/socket.c:742\nsock_write_iter+0x279/0x360 net/socket.c:1195\nFreed by task 5991:\nmgmt_pending_free net/bluetooth/mgmt_util.c:311 [inline]\nmgmt_pending_foreach+0x30d/0x380 net/bluetooth/mgmt_util.c:257\nmgmt_index_removed+0x112/0x2f0 net/bluetooth/mgmt.c:9477\nhci_sock_bind+0xbe9/0x1000 net/bluetooth/hci_sock.c:1314", "A use-after-free vulnerability was found in the Linux kernel's Bluetooth HCI socket implementation. A race condition between socket bind and write operations allows mgmt_pending to free a command structure while write_iter is still attempting to send it, resulting in use-after-free when the freed memory is accessed." ],
  "statement" : "This race requires concurrent socket operations from userspace. Local attackers with Bluetooth socket access could potentially trigger this for denial of service or privilege escalation.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2026-02-02T00:00:00Z",
    "advisory" : "RHSA-2026:1690",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.1",
    "package" : "kernel-0:6.12.0-124.31.1.el10_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-01-26T00:00:00Z",
    "advisory" : "RHSA-2026:1143",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-611.26.1.el9_7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-01-26T00:00:00Z",
    "advisory" : "RHSA-2026:1143",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-611.26.1.el9_7"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2025-68305\nhttps://nvd.nist.gov/vuln/detail/CVE-2025-68305\nhttps://lore.kernel.org/linux-cve-announce/2025121644-CVE-2025-68305-e40b@gregkh/T" ],
  "name" : "CVE-2025-68305",
  "csaw" : false
}