Bug 1224695 (CVE-2024-35856)

Summary: VUL-0: CVE-2024-35856: kernel: Bluetooth: btusb: mediatek: Fix double free of skb in coredump
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Joey Lee <jlee>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: gabriele.sonnu, jlee
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/406384/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-35856:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-05-20 16:07:03 UTC
In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: btusb: mediatek: Fix double free of skb in coredump

hci_devcd_append() would free the skb on error so the caller don't
have to free it again otherwise it would cause the double free of skb.

Reported-by : Dan Carpenter <dan.carpenter@linaro.org>

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35856
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-35856.mbox
https://git.kernel.org/stable/c/80dfef128cb9f1b1ef67c0fe8c8deb4ea7ad30c1
https://git.kernel.org/stable/c/e20093c741d8da9f6390dd45d75b779861547035
https://git.kernel.org/stable/c/18bdb386a1a30e7a3d7732a98e45e69cf6b5710d
https://www.cve.org/CVERecord?id=CVE-2024-35856
https://bugzilla.redhat.com/show_bug.cgi?id=2281249
Comment 1 Joey Lee 2024-05-21 04:51:05 UTC
commit 18bdb386a1a30e7a3d7732a98e45e69cf6b5710d      [v6.9-rc6]
Author: Sean Wang <sean.wang@mediatek.com>
Date:   Wed Apr 17 16:27:38 2024 -0700

    Bluetooth: btusb: mediatek: Fix double free of skb in coredump
    
    hci_devcd_append() would free the skb on error so the caller don't
    have to free it again otherwise it would cause the double free of skb.
    
    Fixes: 0b7015132878 ("Bluetooth: btusb: mediatek: add MediaTek devcoredump support")      [v6.6-rc1]
    Reported-by : Dan Carpenter <dan.carpenter@linaro.org>
    Signed-off-by: Sean Wang <sean.wang@mediatek.com>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Comment 2 Joey Lee 2024-05-21 04:51:50 UTC
https://www.suse.com/security/cve/CVE-2024-35856.html
cvss 5.5