scsi: target: iblock: Fix wrong PR ops NULL check for PREEMPT/RELEASE
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: iblock: Fix wrong PR ops NULL check for PREEMPT/RELEASE
In the iblock_execute_pr_out() function, PRO_PREEMPT, PRO_PREEMPT_AND_ABORT, and PRO_RELEASE all perform callback capability checks through ops->pr_clear. The error check allows unimplemented hooks to pass through the gate, resulting dereferencing a NULL function pointer.
Check whether the hooks that need to be called are supported.
From the CVE record · Linux
The Linux kernel's SCSI target iblock component checks the wrong callback when handling certain persistent reservation PREEMPT and RELEASE operations. If a required callback is unimplemented, processing one of these operations can dereference a NULL function pointer. The input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel with the SCSI target iblock component should check their installations; affected versions are not specified.