ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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).
| Product | Versions |
|---|---|
| Linux Linux | 094932903f6d1ecc6df7669c052f9c59a3428a79 to before 8160811079129f96290caa354eda0e7649305414 Affectedd91a1d129b63614fa4c2e45e60918409ce36db7e to before 615db7a9c7130aefd9f09eaa63f27cd78a33f9ad Affectedd91a1d129b63614fa4c2e45e60918409ce36db7e to before 755c4d87215134d00d66355ab1f36c4c53c629e4 Affectedd91a1d129b63614fa4c2e45e60918409ce36db7e to before 2cf65d00347005eccf9a24801783377d7f920021 Affected1cf52204e78526cd1a2b49892c4e312735c7273b Affected6.12.58 to before 6.12.119 Affected6.17.8 to before 6.18 Affected |
| Linux Linux | 6.18 Affectedbefore 6.18 Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.