{"id":"CVE-2026-139697","summary":"ACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nACPI: fan: Fix memory leak due to leftover devm_kcalloc() argument\n\nAn ACPI device object's dev field in passed as the first argument to\ndevm_kcalloc() in acpi_fan_get_fps() which is incorrect and leads to\na memory leak on driver probe errors and removal because the driver\nis not bound to that ACPI device.\n\nAddress this by replacing that pointer with a pointer to the device the\ndriver is actually bound to.\n\nWhile at it, drop a redundant error message after a memory allocation\nfailure (that also gets printed relative to the ACPI device).","modified":"2026-11-30T15:02:30.194226371Z","published":"2026-11-30T13:37:08.496Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139697.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2cf65d00347005eccf9a24801783377d7f920021"},{"type":"WEB","url":"https://git.kernel.org/stable/c/615db7a9c7130aefd9f09eaa63f27cd78a33f9ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/755c4d87215134d00d66355ab1f36c4c53c629e4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8160811079129f96290caa354eda0e7649305414"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139697.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139697"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"094932903f6d1ecc6df7669c052f9c59a3428a79"},{"fixed":"8160811079129f96290caa354eda0e7649305414"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d91a1d129b63614fa4c2e45e60918409ce36db7e"},{"fixed":"615db7a9c7130aefd9f09eaa63f27cd78a33f9ad"},{"fixed":"755c4d87215134d00d66355ab1f36c4c53c629e4"},{"fixed":"2cf65d00347005eccf9a24801783377d7f920021"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1cf52204e78526cd1a2b49892c4e312735c7273b"}]}],"versions":["v6.12.118","v6.12.117","v6.12.116","v6.12.115","v6.12.114","v6.12.113","v6.12.112","v6.12.111","v6.12.110","v6.12.109","v6.12.108","v6.12.107","v6.12.106","v6.12.105","v6.12.104","v6.12.103","v6.12.102","v6.12.101","v6.12.100","v6.12.99","v6.12.98","v6.12.97","v6.12.96","v6.12.95","v6.12.94","v6.12.93","v6.12.92","v6.12.91","v6.12.90","v6.12.89","v6.12.88","v6.12.87","v6.12.86","v6.12.85","v6.12.84","v6.12.83","v6.12.82","v6.12.81","v6.12.80","v6.12.79","v6.12.78","v6.12.77","v6.12.76","v6.12.75","v6.12.74","v6.12.73","v6.12.72","v6.12.71","v6.12.70","v6.12.69","v6.12.68","v6.12.67","v6.12.66","v6.12.65","v6.12.64","v6.12.63","v6.12.62","v6.12.61","v6.12.60","v6.12.59","v6.12.58","v6.17.13","v6.17.12","v6.17.11","v6.17.10","v6.17.9","v6.17.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139697.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.58"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.17.8"},{"fixed":"6.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139697.json"}}],"schema_version":"1.9.2"}