In the Linux kernel, the following vulnerability has been resolved:
hwmon: (lm90) Only report alarms if driver is ready
Userspace can read sysfs attributes before driver registration is complete, immediately after devmhwmondeviceregisterwithinfo() has been called. At that time, data->hwmondev is not yet initialized. This can trigger a NULL pointer access since lm90updatedevice() and with it lm90updatealarmslocked() will be called. This call schedules reportwork and lm90reportalarms(), which passes the still-NULL data->hwmondev to hwmonnotify_event() and triggers a NULL pointer dereference.
Fix the problem by only scheduling the report and alert workers data->hwmon_dev is set.