platform/x86: intel-hid: Protect ACPI notify handler against recursion
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel eace3b3e729d5ba11794d69acfafb58a7950217c, Kernel 86df6499dfd232fbc1c82c0d6eb9322ca67b8cd0, Kernel a6402808e552e44e9c26a9fe8395ac11703d5800 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: platform/x86: intel-hid: Protect ACPI notify handler against recursion Since commit e2ffcda16290 ("ACPI: OSL: Allow Notify () handlers to run on all CPUs") ACPI notify handlers like the intel-hid notify_handler() may run on multiple CPU cores racing with themselves. On convertibles and detachables (matched by DMI chassis-type 31 and 32 in dmi_auto_add_switch[]) the SW_TABLET_MODE input device is registered lazily from notify_handler() on the first tablet-mode event, via intel_hid_switches_setup(). When two such events race on different CPUs both can pass the !priv->switches check and register the priv->switches input device twice, resulting in a duplicate sysfs entry and a subsequent NULL pointer dereference. This is the same class of bug fixed by commit e075c3b13a0a ("platform/x86: intel-vbtn: Protect ACPI notify handler against recursion") for the sibling intel-vbtn driver. Protect intel-hid notify_handler() from racing with itself with a mutex to fix this.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e2ffcda1629012a2c1a3706432bc45fdc899a584 <eace3b3e729d5ba11794d69acfafb58a7950217c, >=e2ffcda1629012a2c1a3706432bc45fdc899a584 <86df6499dfd232fbc1c82c0d6eb9322ca67b8cd0, >=e2ffcda1629012a2c1a3706432bc45fdc899a584 <a6402808e552e44e9c26a9fe8395ac11703d5800, >=e2ffcda1629012a2c1a3706432bc45fdc899a584 <c085d82613d5618814b84406c8b2d64f1bc305e7, =6.8 | eace3b3e729d5ba11794d69acfafb58a7950217c, 86df6499dfd232fbc1c82c0d6eb9322ca67b8cd0, a6402808e552e44e9c26a9fe8395ac11703d5800, c085d82613d5618814b84406c8b2d64f1bc305e7 |
| linux-kernel: Kernel | >=6.19.0 <7.1.4, >=6.8.0 <6.12.96, >=6.13.0 <6.18.39 | 7.1.4, 6.12.96, 6.18.39 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket