{"id":"CVE-2025-40141","state":"PUBLISHED","title":"Bluetooth: ISO: Fix possible UAF on iso_conn_free","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: ISO: Fix possible UAF on iso_conn_free\n\nThis attempt to fix similar issue to sco_conn_free where if the\nconn->sk is not set to NULL may lead to UAF on iso_conn_free.","publishedAt":"2025-11-12T10:23:24.856Z","updatedAt":"2026-10-15T22:02:38.774Z","severity":{"score":8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"eba6d787ec117a5d2c60f9644e0a39c18542b6be","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"5319145a07d8bf5b0782b25cb3115825689d42bb","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"80689777919f02328eb873769de4647c9dd3e371","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"c92ad1a155ccfa38b87bd1d998287e1c0a24248d","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"9950f095d6c875dbe0c9ebfcf972ec88fdf26fc8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/iso.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.156","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.112","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.53","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.3","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/iso.c"]}],"references":["https://git.kernel.org/stable/c/eba6d787ec117a5d2c60f9644e0a39c18542b6be","https://git.kernel.org/stable/c/5319145a07d8bf5b0782b25cb3115825689d42bb","https://git.kernel.org/stable/c/80689777919f02328eb873769de4647c9dd3e371","https://git.kernel.org/stable/c/c92ad1a155ccfa38b87bd1d998287e1c0a24248d","https://git.kernel.org/stable/c/9950f095d6c875dbe0c9ebfcf972ec88fdf26fc8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40141.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40141","state":"PUBLISHED","datePublished":"2025-11-12T10:23:24.856Z","dateUpdated":"2026-10-15T22:02:38.774Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.171Z"},"containers":{"cna":{"title":"Bluetooth: ISO: Fix possible UAF on iso_conn_free","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: ISO: Fix possible UAF on iso_conn_free\n\nThis attempt to fix similar issue to sco_conn_free where if the\nconn->sk is not set to NULL may lead to UAF on iso_conn_free."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"eba6d787ec117a5d2c60f9644e0a39c18542b6be","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"5319145a07d8bf5b0782b25cb3115825689d42bb","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"80689777919f02328eb873769de4647c9dd3e371","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"c92ad1a155ccfa38b87bd1d998287e1c0a24248d","versionType":"git"},{"version":"ccf74f2390d60a2f9a75ef496d2564abb478f46a","status":"affected","lessThan":"9950f095d6c875dbe0c9ebfcf972ec88fdf26fc8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/iso.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.156","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.112","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.53","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.3","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/iso.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/eba6d787ec117a5d2c60f9644e0a39c18542b6be"},{"url":"https://git.kernel.org/stable/c/5319145a07d8bf5b0782b25cb3115825689d42bb"},{"url":"https://git.kernel.org/stable/c/80689777919f02328eb873769de4647c9dd3e371"},{"url":"https://git.kernel.org/stable/c/c92ad1a155ccfa38b87bd1d998287e1c0a24248d"},{"url":"https://git.kernel.org/stable/c/9950f095d6c875dbe0c9ebfcf972ec88fdf26fc8"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The vulnerable object lifetime is driven by the Bluetooth ISO/HCI connection state machine, and the final use-after-free write occurs when an HCI connect/disconnect/abort event from a Bluetooth peer drops the last `iso_conn` reference (`iso_connect_cfm`/`iso_disconn_cfm` → `iso_conn_del` → `iso_conn_free`). Per CNA guidance Bluetooth-reachable code is Adjacent, and an attacker-controlled LE Audio device can drive the CIS/BIS setup and teardown events that complete the race.\nAC:L - The attacker controls both sides of the race directly — one thread calls `listen()` (which drops the socket lock across `iso_listen_bis()`, leaving `sk_state == BT_BOUND` while `conn->sk` is set) while another calls `close()`, hitting the `default:` arm of `__iso_sock_close()` that zaps the socket without clearing `conn->sk`. The window can be retried indefinitely, and the delayed conn put gives a long, tunable reallocation window.\nPR:L - `iso_sock_create()` performs no capability check, so any unprivileged local user can open a `BTPROTO_ISO` `SOCK_SEQPACKET` socket and drive the listen/close race; no CAP_NET_ADMIN or root is required.\nUI:N - The race is driven entirely by the attacker's own threads plus asynchronous HCI events; no action by a legitimate user or administrator is needed.\nS:U - The corruption is confined to kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - A use-after-free on a freed `struct iso_pinfo` lets the attacker reoccupy the slab slot with a chosen object, and the stale `conn->sk` plus the `iso_sock_hold()` read of freed memory can be leveraged into kernel memory disclosure.\nI:H - `iso_conn_free()` performs an 8-byte write at a fixed offset into the freed socket object; after heap spraying this becomes a targeted write into an attacker-chosen kernel structure, enabling pointer/refcount corruption and control-flow hijack.\nA:H - The use-after-free reliably corrupts slab memory and causes kernel oops/panic (as demonstrated by the KASAN slab-use-after-free report in the sibling SCO fix), and it can be triggered repeatedly."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:08:03.741Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.156"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.17.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-40141","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:57:17.170509Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T22:02:38.774Z"}}]}}}