Nixpkgs security tracker

Try the new UI
Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 1 week, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
s390/dasd: Guard sysfs discipline callbacks against unallocated private data

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

Linux
  • <5.3
  • =<*
  • =<7.2.*
  • <2a1780f9fc2493bd34c418a0be6fc58943afcecf
  • ==5.3
  • <449f3bada7a9fad8b8cdf4bb20baf27ee9ca56c5
  • =<6.18.*
  • <6452c13646af7c13d7f6668b6690cfb2427e7f7b
  • =<6.12.*
  • <536407b272402af679155910d7fdeeb4834eefb9