char: tlclk: fix use-after-free in tlclk_cleanup()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c3f0cd76561ae611c2d247ee96dfd559e4197cb7, Kernel 09d8d2a46a9ec9ff728f3159a174a2ab25dd0f0a, Kernel 166dd1d5265e067459e674c11688919901813ec2 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: char: tlclk: fix use-after-free in tlclk_cleanup() This patch improves the module cleanup process in the tlclk driver to prevent potential use-after-free and race conditions. Currently, the file_operations structure does not specify the .owner field, which could allow the module to be unloaded while user-space processes are still interacting with the device. Additionally, the tlclk_cleanup() function frees the alarm_events memory before ensuring that blocked processes in the waitqueue are fully awakened and that the switchover_timer has completed. To address these cases, this patch: - Sets '.owner = THIS_MODULE' in tlclk_fops to safely defer module unloading while the device is in use. - Updates tlclk_cleanup() to explicitly wake up all blocked readers (wake_up_all), properly release hardware I/O regions, and safely delete the timer (timer_delete_sync) prior to freeing memory.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1a80ba88273097933f93b1f40537337416798c70 <c3f0cd76561ae611c2d247ee96dfd559e4197cb7, >=1a80ba88273097933f93b1f40537337416798c70 <09d8d2a46a9ec9ff728f3159a174a2ab25dd0f0a, >=1a80ba88273097933f93b1f40537337416798c70 <166dd1d5265e067459e674c11688919901813ec2, >=1a80ba88273097933f93b1f40537337416798c70 <3d5e4cc0d9dce79b0429da3134ac7b072ab9009f, >=1a80ba88273097933f93b1f40537337416798c70 <42223445607a9a5df3cb1c4729abfe3a5085e7ce, >=1a80ba88273097933f93b1f40537337416798c70 <764723bd67a6c8f53a8d8309211fb039e2ebcf49, >=1a80ba88273097933f93b1f40537337416798c70 <96902299a22d126ef5eb3f45cd5d8ceea9e6a735, >=1a80ba88273097933f93b1f40537337416798c70 <bbf003b7794d6ad6f939fdd29f1f1bde8ac554c1, =2.6.15 | c3f0cd76561ae611c2d247ee96dfd559e4197cb7, 09d8d2a46a9ec9ff728f3159a174a2ab25dd0f0a, 166dd1d5265e067459e674c11688919901813ec2, 3d5e4cc0d9dce79b0429da3134ac7b072ab9009f, 42223445607a9a5df3cb1c4729abfe3a5085e7ce, 764723bd67a6c8f53a8d8309211fb039e2ebcf49, 96902299a22d126ef5eb3f45cd5d8ceea9e6a735, bbf003b7794d6ad6f939fdd29f1f1bde8ac554c1 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=2.6.15 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket