CVE-2026-31520
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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

Mitigation and workarounds

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

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.170-1

Fixed

sid

linux: 6.19.11-1

Fixed

trixie

linux: 6.12.85-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux

Affected

bionic (fips-updates)

linux-fips

Affected

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal (esm-infra)

linux

Affected

focal (fips-updates)

linux-fips

Affected

focal (fips)

linux-fips

Affected

jammy

linux

Affected

RHEL / CentOS

Affected

RHEL 8

kernel-rt.src

Affected

RHEL 9

kernel-rt.src

Affected

RHEL 10

kernel.src

Affected

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93189HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-fips
NoYesSep 17, 2026
CVE-2026-93188MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-5.15
NoYesSep 17, 2026
CVE-2026-93182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-fips
NoYesSep 17, 2026
CVE-2026-93181NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoNoSep 17, 2026
CVE-2026-93174NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoYesSep 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management