CVE-2023-54038
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link hci_connect_sco currently returns NULL when there is no link (i.e. when hci_conn_link() returns NULL). sco_connect() expects an ERR_PTR in case of any error (see line 266 in sco.c). Thus, hcon set as NULL passes through to sco_conn_add(), which tries to get hcon->hdev, resulting in dereferencing a NULL pointer as reported by syzkaller. The same issue exists for iso_connect_cis() calling hci_connect_cis(). Thus, make hci_connect_sco() and hci_connect_cis() return ERR_PTR instead of NULL.
Affected versions
Linux kernel versions
6.3.8,
6.4
and later are affected. Fixed in
6.4.7,
6.5
and their respective stable series.
References
The following references provide additional information about CVE-2023-54038 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/357ab53c83a5322437fa434e9a9e3e0bafe6b383
-
PatchKernel patch commithttps://git.kernel.org/stable/c/b4066eb04bb67e7ff66e5aaab0db4a753f37eaad
Frequently asked questions
-
What is CVE-2023-54038?
CVE-2023-54038 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.3.8 onward and has been patched in 6.4.7 and 6.5. CVE-2023-54038 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2023-54038?
Yes — CVE-2023-54038 has been patched. Fixed versions include 6.4.7 and 6.5. If you are running Linux kernel 6.3.8 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2023-54038 actively exploited?
No — CVE-2023-54038 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.