CVE-2026-31524 HID: asus: avoid memory leak in asus_report_fixup()

Medium 5.5 Published Updated

A memory leak in the Linux kernel ASUS HID driver allows attackers to cause denial of service by exhausting kernel memory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-31524?

CVE-2026-31524 is a medium-severity memory corruption vulnerability in Linux kernel, published on 22 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

HID: asus: avoid memory leak in asus_report_fixup()

The asus_report_fixup() function was returning a newly allocated kmemdup()-allocated buffer, but never freeing it. Switch to devm_kzalloc() to ensure the memory is managed and freed automatically when the device is removed.

The caller of report_fixup() does not take ownership of the returned pointer, but it is permitted to return a pointer whose lifetime is at least that of the input buffer.

Also fix a harmless out-of-bounds read by copying only the original descriptor size.

Weakness: CWE-401

Which versions are affected by CVE-2026-31524?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-31524?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-31524 being exploited?

There is no known exploitation of CVE-2026-31524 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-83189, BELL-CVE-2026-31524, DEBIAN-CVE-2026-31524, GHSA-78q6-rmj2-p97w, ROOT-OS-DEBIAN-11-CVE-2026-31524, ROOT-OS-DEBIAN-12-CVE-2026-31524 and 3 more.

Is CVE-2026-31524 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free