scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e48354ce078c079996f89d715dfa44814b4eba01 · < 4738bf8b2d3635c2944b81b2a84d97b8c8b0978d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
The function lio_target_nacl_info_show() uses sprintf() in a loop to print details for every iSCSI connection in a session without checking for the buffer length. With enough iSCSI connections it's possible to overflow the buffer provided by configfs and corrupt the memory.
This patch replaces sprintf() with sysfs_emit_at() that checks for buffer boundries.
From the CVE record · Linux
The Linux kernel’s iSCSI target function lio_target_nacl_info_show() can overflow a configfs buffer when a session has enough iSCSI connections. Reading the affected configfs information under that condition can corrupt memory; the input does not specify authentication requirements or a network attack path.
Engineers running Linux kernels with the iSCSI target should check whether their kernel includes the fix; affected versions were not provided.