CVE-2023-52811
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
21/05/2024
Last modified:
02/04/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
scsi: ibmvfc: Remove BUG_ON in the case of an empty event pool<br />
<br />
In practice the driver should never send more commands than are allocated<br />
to a queue&#39;s event pool. In the unlikely event that this happens, the code<br />
asserts a BUG_ON, and in the case that the kernel is not configured to<br />
crash on panic returns a junk event pointer from the empty event list<br />
causing things to spiral from there. This BUG_ON is a historical artifact<br />
of the ibmvfc driver first being upstreamed, and it is well known now that<br />
the use of BUG_ON is bad practice except in the most unrecoverable<br />
scenario. There is nothing about this scenario that prevents the driver<br />
from recovering and carrying on.<br />
<br />
Remove the BUG_ON in question from ibmvfc_get_event() and return a NULL<br />
pointer in the case of an empty event pool. Update all call sites to<br />
ibmvfc_get_event() to check for a NULL pointer and perfrom the appropriate<br />
failure or recovery action.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.15.140 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.64 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.5.13 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6 (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/88984ec4792766df5a9de7a2ff2b5f281f94c7d4
- https://git.kernel.org/stable/c/8bbe784c2ff28d56ca0c548aaf3e584edc77052d
- https://git.kernel.org/stable/c/b39f2d10b86d0af353ea339e5815820026bca48f
- https://git.kernel.org/stable/c/d2af4ef80601224b90630c1ddc7cd2c7c8ab4dd8
- https://git.kernel.org/stable/c/e1d1f79b1929dce470a5dc9281c574cd58e8c6c0
- https://git.kernel.org/stable/c/88984ec4792766df5a9de7a2ff2b5f281f94c7d4
- https://git.kernel.org/stable/c/8bbe784c2ff28d56ca0c548aaf3e584edc77052d
- https://git.kernel.org/stable/c/b39f2d10b86d0af353ea339e5815820026bca48f
- https://git.kernel.org/stable/c/d2af4ef80601224b90630c1ddc7cd2c7c8ab4dd8
- https://git.kernel.org/stable/c/e1d1f79b1929dce470a5dc9281c574cd58e8c6c0



