{"id":"CVE-2023-52518","state":"PUBLISHED","title":"Bluetooth: hci_codec: Fix leaking content of local_codecs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_codec: Fix leaking content of local_codecs\n\nThe following memory leak can be observed when the controller supports\ncodecs which are stored in local_codecs list but the elements are never\nfreed:\n\nunreferenced object 0xffff88800221d840 (size 32):\n  comm \"kworker/u3:0\", pid 36, jiffies 4294898739 (age 127.060s)\n  hex dump (first 32 bytes):\n    f8 d3 02 03 80 88 ff ff 80 d8 21 02 80 88 ff ff  ..........!.....\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [<ffffffffb324f557>] __kmalloc+0x47/0x120\n    [<ffffffffb39ef37d>] hci_codec_list_add.isra.0+0x2d/0x160\n    [<ffffffffb39ef643>] hci_read_codec_capabilities+0x183/0x270\n    [<ffffffffb39ef9ab>] hci_read_supported_codecs+0x1bb/0x2d0\n    [<ffffffffb39f162e>] hci_read_local_codecs_sync+0x3e/0x60\n    [<ffffffffb39ff1b3>] hci_dev_open_sync+0x943/0x11e0\n    [<ffffffffb396d55d>] hci_power_on+0x10d/0x3f0\n    [<ffffffffb30c99b4>] process_one_work+0x404/0x800\n    [<ffffffffb30ca134>] worker_thread+0x374/0x670\n    [<ffffffffb30d9108>] kthread+0x188/0x1c0\n    [<ffffffffb304db6b>] ret_from_fork+0x2b/0x50\n    [<ffffffffb300206a>] ret_from_fork_asm+0x1a/0x30","publishedAt":"2024-03-02T21:54:47.826Z","updatedAt":"2026-05-11T19:28:51.101Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8961987f3f5fa2f2618e72304d013c8dd5e604a6","status":"affected","lessThan":"626535077ba9dc110787540d1fe24881094c15a1","versionType":"git"},{"version":"8961987f3f5fa2f2618e72304d013c8dd5e604a6","status":"affected","lessThan":"eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1","versionType":"git"},{"version":"8961987f3f5fa2f2618e72304d013c8dd5e604a6","status":"affected","lessThan":"b938790e70540bf4f2e653dcd74b232494d06c8f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c","net/bluetooth/hci_sync.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.57","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.7","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c","net/bluetooth/hci_sync.c"]}],"references":["https://git.kernel.org/stable/c/626535077ba9dc110787540d1fe24881094c15a1","https://git.kernel.org/stable/c/eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1","https://git.kernel.org/stable/c/b938790e70540bf4f2e653dcd74b232494d06c8f"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52518.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52518","state":"PUBLISHED","datePublished":"2024-03-02T21:54:47.826Z","dateUpdated":"2026-05-11T19:28:51.101Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-20T12:30:33.317Z"},"containers":{"cna":{"title":"Bluetooth: hci_codec: Fix leaking content of local_codecs","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_codec: Fix leaking content of local_codecs\n\nThe following memory leak can be observed when the controller supports\ncodecs which are stored in local_codecs list but the elements are never\nfreed:\n\nunreferenced object 0xffff88800221d840 (size 32):\n  comm \"kworker/u3:0\", pid 36, jiffies 4294898739 (age 127.060s)\n  hex dump (first 32 bytes):\n    f8 d3 02 03 80 88 ff ff 80 d8 21 02 80 88 ff ff  ..........!.....\n    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [<ffffffffb324f557>] __kmalloc+0x47/0x120\n    [<ffffffffb39ef37d>] hci_codec_list_add.isra.0+0x2d/0x160\n    [<ffffffffb39ef643>] hci_read_codec_capabilities+0x183/0x270\n    [<ffffffffb39ef9ab>] hci_read_supported_codecs+0x1bb/0x2d0\n    [<ffffffffb39f162e>] hci_read_local_codecs_sync+0x3e/0x60\n    [<ffffffffb39ff1b3>] hci_dev_open_sync+0x943/0x11e0\n    [<ffffffffb396d55d>] hci_power_on+0x10d/0x3f0\n    [<ffffffffb30c99b4>] process_one_work+0x404/0x800\n    [<ffffffffb30ca134>] worker_thread+0x374/0x670\n    [<ffffffffb30d9108>] kthread+0x188/0x1c0\n    [<ffffffffb304db6b>] ret_from_fork+0x2b/0x50\n    [<ffffffffb300206a>] ret_from_fork_asm+0x1a/0x30"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8961987f3f5fa2f2618e72304d013c8dd5e604a6","status":"affected","lessThan":"626535077ba9dc110787540d1fe24881094c15a1","versionType":"git"},{"version":"8961987f3f5fa2f2618e72304d013c8dd5e604a6","status":"affected","lessThan":"eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1","versionType":"git"},{"version":"8961987f3f5fa2f2618e72304d013c8dd5e604a6","status":"affected","lessThan":"b938790e70540bf4f2e653dcd74b232494d06c8f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c","net/bluetooth/hci_sync.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.57","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.7","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c","net/bluetooth/hci_sync.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/626535077ba9dc110787540d1fe24881094c15a1"},{"url":"https://git.kernel.org/stable/c/eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1"},{"url":"https://git.kernel.org/stable/c/b938790e70540bf4f2e653dcd74b232494d06c8f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:28:51.101Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.5.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-07-24T14:55:30.640088Z","id":"CVE-2023-52518","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","type":"CWE","lang":"en","description":"CWE-770 Allocation of Resources Without Limits or Throttling"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-01T15:47:47.632Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/626535077ba9dc110787540d1fe24881094c15a1","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b938790e70540bf4f2e653dcd74b232494d06c8f","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:03:20.700Z"}}]}}}