Files
vuln-cve/data/2025/38xxx/CVE-2025-38303.json
T

239 lines
13 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2025-38303",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2025-04-16T04:51:24.002Z",
"datePublished": "2025-07-10T07:42:14.728Z",
"dateUpdated": "2026-10-21T12:37:00.173Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-10-21T12:37:00.173Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: eir: Fix possible crashes on eir_create_adv_data\n\neir_create_adv_data may attempt to add EIR_FLAGS and EIR_TX_POWER\nwithout checking if that would fit."
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The overflow is driven entirely by locally-configured advertising data submitted over an AF_BLUETOOTH HCI control socket (MGMT_OP_ADD_ADVERTISING / MGMT_OP_ADD_EXT_ADV_DATA), so local system access is mandatory. No adjacent or remote Bluetooth peer supplies any of the data consumed by eir_create_adv_data(), since advertising payloads are outbound and locally authored.\nAC:L - The attacker deterministically controls every input to the overflow — the adv instance flags (MGMT_ADV_FLAG_TX_POWER without a managed-flags bit), the exact adv_data_len at the tlv_data_max_len ceiling, and the BR/EDR-disabled state (MGMT_OP_SET_BREDR) that makes the kernel prepend the unbudgeted LE_AD_NO_BREDR Flags AD. There is no race, no timing window, and no memory-layout precondition outside the attacker's influence.\nPR:L - The handlers lack HCI_MGMT_UNTRUSTED so the socket must be CAP_NET_ADMIN-trusted, but in the realistic Bluetooth deployments for this code (Android's non-root AID_BLUETOOTH service, ChromeOS/embedded/automotive BT daemons) that capability is held by an unprivileged, remotely-exposed, SELinux-confined daemon rather than by root. A compromised Bluetooth daemon — far short of full admin — is sufficient to reach the bug.\nUI:N - The attacker issues every mgmt command needed (set bredr off, add advertising with a max-length payload) from its own socket, and the overflow fires from the hci_cmd_sync_work kthread without any victim action. No pairing, connection, or user-initiated operation by another party is involved.\nS:U - The corruption occurs on the kernel stack of the Bluetooth command-sync worker, within the same kernel security authority as the vulnerable code. No VM, IOMMU, container, or sandbox boundary is crossed.\nC:H - In the extended-advertising path the inflated return value propagates into struct_size(pdu, data, len), so the HCI command skb is assembled from bytes beyond the 255-byte stack object, leaking adjacent kernel stack contents into the HCI command stream and to HCI monitor consumers; the legacy path similarly publishes hdev->adv_data_len = 34 with only 31 valid bytes. Combined with the stack-corruption primitive, this is leverageable for kernel memory disclosure.\nI:H - This is an out-of-bounds write past a fixed-size stack buffer, placing attacker-influenced bytes (0x02, EIR_TX_POWER, and a tx_power value the attacker can steer via the advertising parameters) into adjacent stack storage of the hci_cmd_sync_work frame. Per the OOB-write classification this is a control-flow-relevant corruption primitive, not a mere bad read.\nA:H - The commit is titled \"Fix possible crashes\" and the confirmed KASAN report on this code shows stack-out-of-bounds writes in eir_create_adv_data() from hci_cmd_sync_work. On stack-protector kernels overwriting past the buffer trips __stack_chk_fail and panics the machine; otherwise it oopses or corrupts the worker's frame, taking down the Bluetooth subsystem or the system."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"net/bluetooth/eir.c",
"net/bluetooth/eir.h",
"net/bluetooth/hci_sync.c"
],
"versions": [
{
"version": "01ce70b0a274bd76a5a311fb90d4d446d9bdfea1",
"lessThan": "2d4588f55cc10fc228f3b46469dbfb3f0a8b13c8",
"status": "affected",
"versionType": "git"
},
{
"version": "01ce70b0a274bd76a5a311fb90d4d446d9bdfea1",
"lessThan": "e98ce4b70beab73563d82bd21821024140e6da06",
"status": "affected",
"versionType": "git"
},
{
"version": "01ce70b0a274bd76a5a311fb90d4d446d9bdfea1",
"lessThan": "2af40d795d3fb0ee5c074b7ac56ab22402aa6e4f",
"status": "affected",
"versionType": "git"
},
{
"version": "01ce70b0a274bd76a5a311fb90d4d446d9bdfea1",
"lessThan": "b9db0c27e73b7c8a19384a44af527edfda74ff3d",
"status": "affected",
"versionType": "git"
},
{
"version": "01ce70b0a274bd76a5a311fb90d4d446d9bdfea1",
"lessThan": "47c03902269aff377f959dc3fd94a9733aa31d6e",
"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/eir.c",
"net/bluetooth/eir.h",
"net/bluetooth/hci_sync.c"
],
"versions": [
{
"version": "5.16",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.16",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.168",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.160",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.12.34",
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.15.3",
"lessThanOrEqual": "6.15.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.16",
"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.168"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.6.160"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.12.34"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.15.3"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.16"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/2d4588f55cc10fc228f3b46469dbfb3f0a8b13c8"
},
{
"url": "https://git.kernel.org/stable/c/e98ce4b70beab73563d82bd21821024140e6da06"
},
{
"url": "https://git.kernel.org/stable/c/2af40d795d3fb0ee5c074b7ac56ab22402aa6e4f"
},
{
"url": "https://git.kernel.org/stable/c/b9db0c27e73b7c8a19384a44af527edfda74ff3d"
},
{
"url": "https://git.kernel.org/stable/c/47c03902269aff377f959dc3fd94a9733aa31d6e"
}
],
"title": "Bluetooth: eir: Fix possible crashes on eir_create_adv_data",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-38303",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-10-15T21:49:29.846337Z"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-15T21:52:13.965Z"
}
}
]
}
}