scsi: qla2xxx: Fix FCE trace enable parsing in debugfs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 841df27d619ee1f5ca6473e15227b39d6136562d · < 7203d4aed8f444e7376c2dee8d93577b37cf9989| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Fix FCE trace enable parsing in debugfs
qla2x00_dfs_fce_write() called kstrtoul() with a NULL result pointer, so a successful parse would dereference NULL and oops. Worse, the int return value (0 on success, negative errno on failure) was assigned to the unsigned long enable flag, inverting the intended logic: a valid number was treated as "disable" while a parse failure enabled FCE.
Parse the value into enable and propagate parse errors to userspace.
From the CVE record · Linux
The Linux kernel's qla2xxx debugfs FCE trace control parses input incorrectly. A local user able to write to this control can trigger a kernel oops with a valid number; invalid input can enable FCE instead.
Engineers running Linux kernels with the qla2xxx driver should check whether their kernel includes the fix; affected versions were not specified.