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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:37:08.496Z
- Modified: 2026-11-30T14:19:59.477Z
- Assigned by: Linux

## 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).

(As written by CVE List.)

## Affected

- Linux Linux: from 094932903f6d1ecc6df7669c052f9c59a3428a79 before 8160811079129f96290caa354eda0e7649305414; from d91a1d129b63614fa4c2e45e60918409ce36db7e before 615db7a9c7130aefd9f09eaa63f27cd78a33f9ad; from d91a1d129b63614fa4c2e45e60918409ce36db7e before 755c4d87215134d00d66355ab1f36c4c53c629e4; from d91a1d129b63614fa4c2e45e60918409ce36db7e before 2cf65d00347005eccf9a24801783377d7f920021; 1cf52204e78526cd1a2b49892c4e312735c7273b; from 6.12.58 before 6.12.119; from 6.17.8 before 6.18; 6.18 (not affected: before 6.18; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/8160811079129f96290caa354eda0e7649305414>
- <https://git.kernel.org/stable/c/615db7a9c7130aefd9f09eaa63f27cd78a33f9ad>
- <https://git.kernel.org/stable/c/755c4d87215134d00d66355ab1f36c4c53c629e4>
- <https://git.kernel.org/stable/c/2cf65d00347005eccf9a24801783377d7f920021>

## Sources

- CVE List: [CVE-2026-139697](https://www.cve.org/CVERecord?id=CVE-2026-139697), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139697](https://nvd.nist.gov/vuln/detail/CVE-2026-139697), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139697 · Whole record: https://cve.day/CVE-2026-139697.json · Rebuilt by cve.day 2026-11-30T14:33:30.690Z
