Format string error in Linux kernel - CVE-2013-2851

 

Format string error in Linux kernel - CVE-2013-2851

Published: June 7, 2013 / Updated: August 11, 2020


Vulnerability identifier: #VU42791
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-2851
CWE-ID: CWE-134
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local #AU# to execute arbitrary code.

Format string vulnerability in the register_disk function in block/genhd.c in the Linux kernel through 3.9.4 allows local users to gain privileges by leveraging root access and writing format string specifiers to /sys/module/md_mod/parameters/new_array in order to create a crafted /dev/md device name.


Affected software

Linux kernel
Ubuntu
linux (Ubuntu package)
linux-lts-quantal (Ubuntu package)
linux-lts-raring (Ubuntu package)

How to mitigate CVE-2013-2851

Install update from vendor's website.

linux (Ubuntu package) - addressed in versions 2.6.32-50.112, 3.2.0-53.81, 3.5.0-39.60, 3.8.0-29.42
linux-lts-quantal (Ubuntu package) - update to 3.5.0-39.60~precise1
linux-lts-raring (Ubuntu package) - update to 3.8.0-29.42~precise1

External References

Related Security Bulletins