CVE-2026-139697: ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ACPI: fan: Fix memory leak due to leftover devmkcalloc() argument

An ACPI device object's dev field in passed as the first argument to devmkcalloc() in acpifangetfps() 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).

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In acpi_fan_get_fps(), pass the device the driver is actually bound to (the ACPI device object's dev field) as the first argument to devm_kcalloc().

Event History

Nov 30, 2026
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
Description

Frequently Asked Questions

1

When can this memory leak occur?

The leak can occur when the ACPI fan driver encounters probe errors or when the driver is removed. It results from associating a devm_kcalloc() allocation with an ACPI device that the driver is not bound to.

2

Which systems are exposed?

Systems using the Linux kernel ACPI fan driver are relevant. The provided information does not identify affected kernel versions, configurations, or hardware models.

3

How is the issue fixed?

The fix changes acpi_fan_get_fps() to pass the device to which the driver is actually bound as the devm_kcalloc() device argument, so managed allocations are released correctly on probe failure and driver removal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203