{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-35963", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-05-17T13:50:33.137Z", "datePublished": "2024-05-20T09:41:53.861Z", "dateUpdated": "2026-08-05T11:31:15.289Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:31:15.289Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sock: Fix not validating setsockopt user input\n\nCheck user input length before copying data." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H", "baseScore": 7.1, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The flaw is reached purely through setsockopt(2)/getsockopt(2) on a locally created AF_BLUETOOTH/BTPROTO_HCI socket; no Bluetooth radio traffic, paired peer, or HCI adapter link participates in reaching the unvalidated copy.\nAC:L - Triggering is fully deterministic — issue setsockopt(fd, SOL_HCI, HCI_DATA_DIR, buf, optlen<4) or setsockopt(fd, SOL_BLUETOOTH, BT_SNDMTU, buf, optlen<2); there is no race, no timing window, and the attacker can groom the kmalloc-8/16 slab to choose what sits past the allocation.\nPR:L - bt_sock_create() and hci_sock_create() contain no capability check and the socket defaults to HCI_CHANNEL_RAW, so any unprivileged local user reaches hci_sock_setsockopt_old() with no bind and no caps; CAP_NET_RAW only narrows the filter masks, and HCI_CHANNEL_CONTROL binding for the BT_SNDMTU path is explicitly allowed for untrusted users.\nUI:N - The attacker performs every step on its own socket — create, bind, setsockopt, getsockopt; no victim action, mount, or file open is required.\nS:U - The out-of-bounds access stays within kernel slab memory under the same security authority, crossing no VM, IOMMU, or sandbox boundary.\nC:H - This is an out-of-bounds read of kernel heap memory past the end of the exact-size kernel_optval allocation, and the disclosed bytes flow straight back to userspace — hci_sock_getsockopt() put_user()s hci_pi(sk)->mtu verbatim, yielding a repeatable 16-bit kernel-heap oracle (plus a bit-oracle via HCI_DATA_DIR/HCI_TIME_STAMP) usable with heap grooming to leak kernel data and defeat KASLR.\nI:N - Nothing is written out of bounds; the only state changed is the attacker's own socket cmsg_mask, filter, and mtu, all of which are settable through the normal API anyway, so no data outside the attacker's authority is modified.\nA:H - The slab out-of-bounds read raises a KASAN BUG that panics outright under the widely deployed panic_on_warn configuration, and the read can fault when it crosses into a KFENCE guard page or unmapped page, producing a kernel oops that an unprivileged local user can repeat at will." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/bluetooth/hci_sock.c" ], "versions": [ { "version": "09572fca7223bcf32c9f0d5e100d8381a81d55f4", "lessThan": "781f3a97a38a338bc893b6db7f9f9670bf1a9e37", "status": "affected", "versionType": "git" }, { "version": "09572fca7223bcf32c9f0d5e100d8381a81d55f4", "lessThan": "0c18a64039aa3f1c16f208d197c65076da798137", "status": "affected", "versionType": "git" }, { "version": "09572fca7223bcf32c9f0d5e100d8381a81d55f4", "lessThan": "50173882bb187e70e37bac01385b9b114019bee2", "status": "affected", "versionType": "git" }, { "version": "09572fca7223bcf32c9f0d5e100d8381a81d55f4", "lessThan": "b2186061d6043d6345a97100460363e990af0d46", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/bluetooth/hci_sock.c" ], "versions": [ { "version": "5.16", "status": "affected" }, { "version": "0", "lessThan": "5.16", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.113", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.55", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.8.7", "lessThanOrEqual": "6.8.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.9", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.1.113" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.6.55" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.8.7" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.9" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/781f3a97a38a338bc893b6db7f9f9670bf1a9e37" }, { "url": "https://git.kernel.org/stable/c/0c18a64039aa3f1c16f208d197c65076da798137" }, { "url": "https://git.kernel.org/stable/c/50173882bb187e70e37bac01385b9b114019bee2" }, { "url": "https://git.kernel.org/stable/c/b2186061d6043d6345a97100460363e990af0d46" } ], "title": "Bluetooth: hci_sock: Fix not validating setsockopt user input", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "title": "CVE Program Container", "references": [ { "url": "https://git.kernel.org/stable/c/50173882bb187e70e37bac01385b9b114019bee2", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/b2186061d6043d6345a97100460363e990af0d46", "tags": [ "x_transferred" ] }, { "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html" } ], "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2025-11-03T21:55:05.767Z" } }, { "metrics": [ { "other": { "type": "ssvc", "content": { "id": "CVE-2024-35963", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2024-09-10T15:40:29.376948Z" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-09-11T17:33:13.806Z" } } ] } }