Nixpkgs security tracker

Login with GitHub

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 1 day ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
iio: temperature: tmp006: use devm_iio_trigger_register

In the Linux kernel, the following vulnerability has been resolved: iio: temperature: tmp006: use devm_iio_trigger_register tmp006_probe() allocates the DRDY trigger with devm_iio_trigger_alloc() but registers it with plain iio_trigger_register(). The driver has no .remove() callback, so on module unload the trigger stays in the global trigger list while its memory is freed by devm, leaving a dangling entry. Switch to devm_iio_trigger_register() so the registration is undone in the same devm scope as the allocation.

Affected products

Linux
  • =<6.18.*
  • <d90f868f56a16e10eedc6552f48d99dff4d275b7
  • <6.13
  • <a4f8491da9563ba6eb77969ac26fc7052114c476
  • =<7.1.*
  • =<*
  • ==6.13
  • <3c5eed894efd93d68d7f6a359a81ddef0e928774