{"id":"CVE-2024-35963","state":"PUBLISHED","title":"Bluetooth: hci_sock: Fix not validating setsockopt user input","description":"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.","publishedAt":"2024-05-20T09:41:53.861Z","updatedAt":"2026-08-05T11:31:15.289Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"781f3a97a38a338bc893b6db7f9f9670bf1a9e37","versionType":"git"},{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"0c18a64039aa3f1c16f208d197c65076da798137","versionType":"git"},{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"50173882bb187e70e37bac01385b9b114019bee2","versionType":"git"},{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"b2186061d6043d6345a97100460363e990af0d46","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.113","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.7","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sock.c"]}],"references":["https://git.kernel.org/stable/c/781f3a97a38a338bc893b6db7f9f9670bf1a9e37","https://git.kernel.org/stable/c/0c18a64039aa3f1c16f208d197c65076da798137","https://git.kernel.org/stable/c/50173882bb187e70e37bac01385b9b114019bee2","https://git.kernel.org/stable/c/b2186061d6043d6345a97100460363e990af0d46","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35963.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35963","state":"PUBLISHED","datePublished":"2024-05-20T09:41:53.861Z","dateUpdated":"2026-08-05T11:31:15.289Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T13:50:33.137Z"},"containers":{"cna":{"title":"Bluetooth: hci_sock: Fix not validating setsockopt user input","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"781f3a97a38a338bc893b6db7f9f9670bf1a9e37","versionType":"git"},{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"0c18a64039aa3f1c16f208d197c65076da798137","versionType":"git"},{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"50173882bb187e70e37bac01385b9b114019bee2","versionType":"git"},{"version":"09572fca7223bcf32c9f0d5e100d8381a81d55f4","status":"affected","lessThan":"b2186061d6043d6345a97100460363e990af0d46","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.113","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.7","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sock.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:31:15.289Z"},"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"}]}]}],"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":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:55:05.767Z"}},{"title":"CISA ADP Vulnrichment","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"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:13.806Z"}}]}}}