CVE-2020-25704
Linux Kernel vulnerability analysis and mitigation

Overview

A memory leak vulnerability (CVE-2020-25704) was discovered in the Linux kernel performance monitoring subsystem, specifically in the PERF_EVENT_IOC_SET_FILTER functionality. The vulnerability was discovered by kiyin(尹亮) and disclosed on November 9, 2020. This flaw affects Linux kernel versions up to and including 5.9, as well as various Linux distributions and products that use the affected kernel versions (Kernel Git, NVD).

Technical details

The vulnerability stems from a memory leak in the perf_event_parse_addr_filter function where allocated memory for the 'filename' variable is not properly freed in certain code paths. The issue occurs when using PERF_EVENT_IOC_SET_FILTER, where memory is allocated using match_strdup but not freed in the failure branch. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, OSS Security).

Impact

The vulnerability allows a local user with appropriate permissions to cause a denial of service through resource exhaustion (memory leak). Testing demonstrated that it could exhaust 16GB of memory in approximately 40 seconds on affected systems. The length of the filename parameter is not limited, which can be exploited to accelerate the memory exhaustion (OSS Security).

Exploitability

The vulnerability requires local access and appropriate permissions to access performance events. Some Linux distributions, such as Debian, mitigate this issue by default as their kernel configuration does not allow unprivileged users to access performance events (Debian LTS).

Mitigation and workarounds

The vulnerability was fixed in Linux kernel 5.10-rc3 with commit 7bdb157cdebbf95a1cd94ed2e01b338714075d00. The fix ensures proper memory deallocation by cleaning up the code flow and ensuring 'filename' is always freed in both reallocation and return paths. Various Linux distributions have backported the fix to their supported kernel versions (Kernel Git).

Additional resources


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-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-hwe-7.0
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-7.0
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg-5.15
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-gcp-fips
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-7.0
NoYesSep 04, 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