Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once hci_cmd_sync_dequeue_once() does lookup and then cancel the entry under two separate lock sections. Meanwhile, hci_cmd_sync_work() can also delete the same entry, leading to double list_del() and "UAF". Fix this by holding cmd_sync_work_lock across both lookup and cancel, so that the entry cannot be removed concurrently.
CVE-2025-40318
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2025-40318
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "f00f36db76eb8fd10d13e80e2590f23b5beaa54d",
"lessThan": "0a94f7e017438935c09ef833a1aa908ad9875213",
"versionType": "git"
},
{
"status": "affected",
"version": "1499f79995c7ee58e3bfeeff75f6d1b37dcda881",
"lessThan": "932c0a4f77ac13e526fdd5b42914d29c9821d389",
"versionType": "git"
},
{
"status": "affected",
"version": "505ea2b295929e7be2b4e1bc86ee31cb7862fb01",
"lessThan": "ae76cf6c2c842944c6514c57df54d728f1916553",
"versionType": "git"
},
{
"status": "affected",
"version": "505ea2b295929e7be2b4e1bc86ee31cb7862fb01",
"lessThan": "9cd536970192b72257afcdfba0bfc09993e6f19c",
"versionType": "git"
},
{
"status": "affected",
"version": "505ea2b295929e7be2b4e1bc86ee31cb7862fb01",
"lessThan": "09b0cd1297b4dbfe736aeaa0ceeab2265f47f772",
"versionType": "git"
},
{
"status": "affected",
"version": "357603f4d396d85fbf0045512efaf1d7f7394ed7",
"versionType": "git"
},
{
"status": "affected",
"version": "6.1.120",
"lessThan": "6.1.159",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.6.51",
"lessThan": "6.6.117",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.8.9",
"lessThan": "6.9",
"versionType": "semver"
}
],
"programFiles": [
"net/bluetooth/hci_sync.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.9"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.9",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.159",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.117",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.58",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.17.8",
"versionType": "semver",
"lessThanOrEqual": "6.17.*"
},
{
"status": "unaffected",
"version": "6.18",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/bluetooth/hci_sync.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2025-40318
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #30711 · Revision 1
- Added to Heist Feed
- Publisher date