ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument
- CVE-2026-139697
- GHSA-vcvh-p2f8-f5jg
- EUVD-2026-139403
Description
In the Linux kernel, the following vulnerability has been resolved: ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument An ACPI device object's dev field in passed as the first argument to devm_kcalloc() in acpi_fan_get_fps() which is incorrect and leads to a memory leak on driver probe errors and removal because the driver is not bound to that ACPI device. Address this by replacing that pointer with a pointer to the device the driver is actually bound to. While at it, drop a redundant error message after a memory allocation failure (that also gets printed relative to the ACPI device).
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.12.xupdate to 6.12.119 or laterPatch update: breaking changes are unlikely
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.12.58 to before 6.12.119 6.12.119 from 6.17.8 to before 6.18 none stated 6.18 none stated before 6.18: not affected none stated from 6.12.119 up to 6.12.*: not affected none stated from 6.18.65 up to 6.18.*: not affected none stated from 7.3.6 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.