In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcicodec: Fix leaking content of localcodecs
The following memory leak can be observed when the controller supports codecs which are stored in local_codecs list but the elements are never freed:
unreferenced object 0xffff88800221d840 (size 32): comm "kworker/u3:0", pid 36, jiffies 4294898739 (age 127.060s) hex dump (first 32 bytes): f8 d3 02 03 80 88 ff ff 80 d8 21 02 80 88 ff ff ..........!..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<ffffffffb324f557>] _kmalloc+0x47/0x120 [<ffffffffb39ef37d>] hcicodeclistadd.isra.0+0x2d/0x160 [<ffffffffb39ef643>] hcireadcodeccapabilities+0x183/0x270 [<ffffffffb39ef9ab>] hcireadsupportedcodecs+0x1bb/0x2d0 [<ffffffffb39f162e>] hcireadlocalcodecssync+0x3e/0x60 [<ffffffffb39ff1b3>] hcidevopensync+0x943/0x11e0 [<ffffffffb396d55d>] hcipoweron+0x10d/0x3f0 [<ffffffffb30c99b4>] processonework+0x404/0x800 [<ffffffffb30ca134>] workerthread+0x374/0x670 [<ffffffffb30d9108>] kthread+0x188/0x1c0 [<ffffffffb304db6b>] retfromfork+0x2b/0x50 [<ffffffffb300206a>] retfromfork_asm+0x1a/0x30
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52518.json"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52518.json"
[
{
"signature_type": "Function",
"target": {
"file": "net/bluetooth/hci_sync.c",
"function": "hci_dev_close_sync"
},
"deprecated": false,
"id": "CVE-2023-52518-255c5045",
"signature_version": "v1",
"digest": {
"function_hash": "138388566095515076952124836524431803041",
"length": 2606.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b938790e70540bf4f2e653dcd74b232494d06c8f"
},
{
"signature_type": "Function",
"target": {
"file": "net/bluetooth/hci_core.c",
"function": "hci_release_dev"
},
"deprecated": false,
"id": "CVE-2023-52518-257fbf91",
"signature_version": "v1",
"digest": {
"function_hash": "269612816867665299279485723838663326509",
"length": 748.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@626535077ba9dc110787540d1fe24881094c15a1"
},
{
"signature_type": "Function",
"target": {
"file": "net/bluetooth/hci_core.c",
"function": "hci_release_dev"
},
"deprecated": false,
"id": "CVE-2023-52518-27f24860",
"signature_version": "v1",
"digest": {
"function_hash": "269612816867665299279485723838663326509",
"length": 748.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_core.c"
},
"deprecated": false,
"id": "CVE-2023-52518-2abf6b4d",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"33943256398421284035012376557771855229",
"34230078953617088054735732913110411688",
"223702392381093982727326718695889451804",
"65468377724186977175654261422465525085"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b938790e70540bf4f2e653dcd74b232494d06c8f"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_event.c"
},
"deprecated": false,
"id": "CVE-2023-52518-4e04679f",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168677874375001215161149845090803591641",
"234424866714265517135235150320131445873",
"72143148703625248671423633201073550190",
"15124507207556745863693436202741850439"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@626535077ba9dc110787540d1fe24881094c15a1"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_sync.c"
},
"deprecated": false,
"id": "CVE-2023-52518-64e4912c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"34695787841259042656178294908306207390",
"80608938881490404418292027492665187501",
"258794377161775654593054446709620584307",
"73219624278508598001330876014715152894"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1"
},
{
"signature_type": "Function",
"target": {
"file": "net/bluetooth/hci_core.c",
"function": "hci_release_dev"
},
"deprecated": false,
"id": "CVE-2023-52518-75ec742e",
"signature_version": "v1",
"digest": {
"function_hash": "269612816867665299279485723838663326509",
"length": 748.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b938790e70540bf4f2e653dcd74b232494d06c8f"
},
{
"signature_type": "Function",
"target": {
"file": "net/bluetooth/hci_sync.c",
"function": "hci_dev_close_sync"
},
"deprecated": false,
"id": "CVE-2023-52518-794ca697",
"signature_version": "v1",
"digest": {
"function_hash": "138388566095515076952124836524431803041",
"length": 2606.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_sync.c"
},
"deprecated": false,
"id": "CVE-2023-52518-86ee8174",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"34695787841259042656178294908306207390",
"80608938881490404418292027492665187501",
"258794377161775654593054446709620584307",
"73219624278508598001330876014715152894"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b938790e70540bf4f2e653dcd74b232494d06c8f"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_sync.c"
},
"deprecated": false,
"id": "CVE-2023-52518-94156912",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"34695787841259042656178294908306207390",
"80608938881490404418292027492665187501",
"258794377161775654593054446709620584307",
"73219624278508598001330876014715152894"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@626535077ba9dc110787540d1fe24881094c15a1"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_core.c"
},
"deprecated": false,
"id": "CVE-2023-52518-99cfc6d2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"33943256398421284035012376557771855229",
"34230078953617088054735732913110411688",
"223702392381093982727326718695889451804",
"65468377724186977175654261422465525085"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1"
},
{
"signature_type": "Function",
"target": {
"file": "net/bluetooth/hci_sync.c",
"function": "hci_dev_close_sync"
},
"deprecated": false,
"id": "CVE-2023-52518-a387798f",
"signature_version": "v1",
"digest": {
"function_hash": "138388566095515076952124836524431803041",
"length": 2606.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@626535077ba9dc110787540d1fe24881094c15a1"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_event.c"
},
"deprecated": false,
"id": "CVE-2023-52518-b0602f1c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168677874375001215161149845090803591641",
"234424866714265517135235150320131445873",
"72143148703625248671423633201073550190",
"15124507207556745863693436202741850439"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_event.c"
},
"deprecated": false,
"id": "CVE-2023-52518-cd0d8553",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168677874375001215161149845090803591641",
"234424866714265517135235150320131445873",
"72143148703625248671423633201073550190",
"15124507207556745863693436202741850439"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b938790e70540bf4f2e653dcd74b232494d06c8f"
},
{
"signature_type": "Line",
"target": {
"file": "net/bluetooth/hci_core.c"
},
"deprecated": false,
"id": "CVE-2023-52518-eae0d61c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"33943256398421284035012376557771855229",
"34230078953617088054735732913110411688",
"223702392381093982727326718695889451804",
"65468377724186977175654261422465525085"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@626535077ba9dc110787540d1fe24881094c15a1"
}
]