CVE-2024-50057: usb: typec: tipd: Free IRQ only if it was requested before
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: tipd: Free IRQ only if it was requested before
In polling mode, if no IRQ was requested there is no need to free it. Call devmfreeirq() only if client->irq is set. This fixes the warning caused by the tps6598x module removal:
WARNING: CPU: 2 PID: 333 at kernel/irq/devres.c:144 devmfreeirq+0x80/0x8c ... ... Call trace: devmfreeirq+0x80/0x8c tps6598xremove+0x28/0x88 [tps6598x] i2cdeviceremove+0x2c/0x9c deviceremove+0x4c/0x80 devicereleasedriverinternal+0x1cc/0x228 driverdetach+0x50/0x98 busremovedriver+0x6c/0xbc driverunregister+0x30/0x60 i2cdeldriver+0x54/0x64 tps6598xi2cdriverexit+0x18/0xc3c [tps6598x] arm64sysdeletemodule+0x184/0x264 invokesyscall+0x48/0x110 el0svccommon.constprop.0+0xc8/0xe8 doel0svc+0x20/0x2c el0svc+0x28/0x98 el0t64synchandler+0x13c/0x158 el0t64sync+0x190/0x194
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50057?
The severity of CVE-2024-50057 is classified as low due to its limited impact.
How does CVE-2024-50057 affect the Linux kernel?
CVE-2024-50057 affects the Linux kernel by causing warnings when freeing IRQs that were not requested in polling mode.
How do I fix CVE-2024-50057?
To fix CVE-2024-50057, ensure you update to a patched version of the Linux kernel that resolves this issue.
Which versions of the Linux kernel are affected by CVE-2024-50057?
CVE-2024-50057 affects Linux kernel versions between 6.7 and 6.11.4, as well as versions up to 6.6.57.
What changes were made in the fix for CVE-2024-50057?
The fix for CVE-2024-50057 includes updating the code to call devm_free_irq() only if client->irq is set.