
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31520 is a memory leak vulnerability in the Linux kernel's HID Apple driver (drivers/hid/hid-apple.c). The apple_report_fixup() function allocates a new buffer via kmemdup() but never frees it, as the caller does not take ownership of the returned pointer. This affects Linux kernel versions 5.17 through multiple stable branches up to 6.19.10 and 7.0-rc1/rc2. It carries a CVSS v3.1 base score of 5.5 (Medium), with local attack vector and high availability impact (GitHub Advisory, Feedly).
The root cause is classified as CWE-401 (Missing Release of Memory after Effective Lifetime). In apple_report_fixup(), the function calls kmemdup() to allocate a new copy of the HID report descriptor buffer (rdesc), then returns this newly allocated pointer to the caller. However, the HID core's report_fixup callback contract does not transfer ownership of the returned pointer to the caller — it only permits returning a sub-portion of the original input rdesc, whose lifetime is managed by the caller. As a result, the kmemdup()-allocated buffer is orphaned on every invocation, leaking kernel memory. Exploitation requires only low privileges and no user interaction, as a local attacker can repeatedly trigger the driver path to accumulate leaked allocations (GitHub Advisory).
Successful exploitation causes gradual kernel memory exhaustion, leading to denial of service through system instability or an out-of-memory condition. Confidentiality and integrity are not affected; only availability is impacted. Systems actively using Apple HID peripherals (e.g., Apple keyboards or mice connected via USB or Bluetooth) are most at risk, as the vulnerable code path is exercised during device enumeration and report descriptor processing (Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The EPSS score is approximately 0.024% (0.000240), indicating very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires local access with low privileges, limiting the practical attack surface (GitHub Advisory, Feedly).
Apply the available kernel patches for the relevant stable branch:
As a workaround where patching is not immediately possible, restrict local user access on systems using Apple HID devices and monitor kernel memory usage for signs of gradual depletion. The hid-apple kernel module can be blocklisted on systems that do not require Apple HID device support (GitHub Advisory, Feedly).
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
linux
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal (esm-infra)
linux
focal (fips-updates)
linux-fips
focal (fips)
linux-fips
jammy
linux
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."