In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: MGMT: Fix list corruption and UAF in command complete handlers
Commit 302a1f674c00 ("Bluetooth: MGMT: Fix possible UAFs") introduced mgmtpendingvalid(), which not only validates the pending command but also unlinks it from the pending list if it is valid. This change in semantics requires updates to several completion handlers to avoid list corruption and memory safety issues.
This patch addresses two left-over issues from the aforementioned rework:
In mgmtaddadvpatternsmonitorcomplete(), mgmtpendingremove() is replaced with mgmtpendingfree() in the success path. Since mgmtpendingvalid() already unlinks the command at the beginning of the function, calling mgmtpendingremove() leads to a double listdel() and subsequent list corruption/kernel panic.
In setmeshcomplete(), the use of mgmtpendingforeach() in the error path is removed. Since the current command is already unlinked by mgmtpendingvalid(), this foreach loop would incorrectly target other pending mesh commands, potentially freeing them while they are still being processed concurrently (leading to UAFs). The redundant mgmtcmdstatus() is also simplified to use cmd->opcode directly.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43059.json",
"cna_assigner": "Linux"
}