Description
In the Linux kernel, the following vulnerability has been resolved: s390/dasd: Guard sysfs discipline callbacks against unallocated private data Several sysfs show/store handlers call a discipline callback that dereferences device->private, either directly or through the DASD_DEFINE_ATTR() macro. During dasd_generic_set_online() the discipline is assigned before check_device() allocates device->private, so an unprivileged read of one of these world-readable attributes in that window dereferences a NULL pointer and panics. Guard the dereference inside each callback that actually touches device->private.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c729696bcf8b23450043dd9c9972c15e53419ae4 to < 644b666c202cce12ccfcf9ded67089b18f4f7659affectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < 4a042d8e5f34282577ece50515cea8bb1246914daffectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < bd8b4572528f9604a13bf3c7c2a167f5cf222f72affectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < 57db27ccc162afe0726cffec0ae62e410ed2d0e9affectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < 536407b272402af679155910d7fdeeb4834eefb9affectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < 6452c13646af7c13d7f6668b6690cfb2427e7f7baffectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < 449f3bada7a9fad8b8cdf4bb20baf27ee9ca56c5affectedc729696bcf8b23450043dd9c9972c15e53419ae4 to < 2a1780f9fc2493bd34c418a0be6fc58943afcecfaffected
Linux Linux
Default version status: affected
5.3affected0 to < 5.3unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.109 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/644b666c202cce12ccfcf9ded67089b18f4f7659 ↗
- https://git.kernel.org/stable/c/4a042d8e5f34282577ece50515cea8bb1246914d ↗
- https://git.kernel.org/stable/c/bd8b4572528f9604a13bf3c7c2a167f5cf222f72 ↗
- https://git.kernel.org/stable/c/57db27ccc162afe0726cffec0ae62e410ed2d0e9 ↗
- https://git.kernel.org/stable/c/536407b272402af679155910d7fdeeb4834eefb9 ↗
- https://git.kernel.org/stable/c/6452c13646af7c13d7f6668b6690cfb2427e7f7b ↗
- https://git.kernel.org/stable/c/449f3bada7a9fad8b8cdf4bb20baf27ee9ca56c5 ↗
- https://git.kernel.org/stable/c/2a1780f9fc2493bd34c418a0be6fc58943afcecf ↗