CVE-2023-52749
Severity CVSS v4.0:
Pending analysis
Type:
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
21/05/2024
Last modified:
06/01/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
spi: Fix null dereference on suspend<br />
<br />
A race condition exists where a synchronous (noqueue) transfer can be<br />
active during a system suspend. This can cause a null pointer<br />
dereference exception to occur when the system resumes.<br />
<br />
Example order of events leading to the exception:<br />
1. spi_sync() calls __spi_transfer_message_noqueue() which sets<br />
ctlr->cur_msg<br />
2. Spi transfer begins via spi_transfer_one_message()<br />
3. System is suspended interrupting the transfer context<br />
4. System is resumed<br />
6. spi_controller_resume() calls spi_start_queue() which resets cur_msg<br />
to NULL<br />
7. Spi transfer context resumes and spi_finalize_current_message() is<br />
called which dereferences cur_msg (which is now NULL)<br />
<br />
Wait for synchronous transfers to complete before suspending by<br />
acquiring the bus mutex and setting/checking a suspend flag.
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.1.66 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.3 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068
- https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e
- https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37
- https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068
- https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e
- https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37



