CVE-2020-13143
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2020-13143 was discovered in the Linux kernel versions 3.16 through 5.6.13. The vulnerability exists in the gadget_dev_desc_UDC_store function in drivers/usb/gadget/configfs.c, where it relies on kstrdup without considering the possibility of an internal '\0' value, which allows attackers to trigger an out-of-bounds read (NVD, Linux Kernel).

Technical details

The vulnerability occurs when the size of the 'name' buffer is smaller than that of the 'page' buffer after kstrdup execution. This happens because the 'page' buffer contains a null (\0) value in the middle, causing kstrdup to create a smaller buffer than expected. When accessing the 'name' buffer with the 'len' variable (which indicates the size of the 'page' buffer), it triggers a memory access violation (Linux USB).

Impact

A local attacker with permissions to write to the gadget configuration filesystem could exploit this vulnerability to cause a denial of service (system crash or memory corruption) or potentially achieve privilege escalation (Ubuntu Security).

Exploitability

The vulnerability requires local access and permissions to write to the gadget configuration filesystem. It has been confirmed to be exploitable through specially crafted input that contains null bytes, as demonstrated by the FuzzUSB testing tool (Linux USB).

Mitigation and workarounds

The vulnerability was fixed in Linux kernel version 5.6.14 by adding a check to compare strlen() of the original buffer with the size variable, ensuring no zero value exists in the buffer before accessing the kstrdup-ed buffer (Linux Kernel). Multiple Linux distributions have released security updates to address this vulnerability, including Ubuntu and Debian (Ubuntu Security, Debian Security).

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-68422NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68399NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68398NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68376NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68374NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 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