CVE-2013-2851
Reported by chrome · Published June 7, 2013
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 3.9.4 |
| linux | Ubuntu:16.04:LTS | 4.2.0-16.19 |
| linux-goldfish | Ubuntu:16.04:LTS | 3.4.0-4.27 |
| linux-aws | Ubuntu:16.04:LTS | 4.4.0-1001.10 |
| linux-snapdragon | Ubuntu:16.04:LTS | 4.4.0-1012.12 |
| linux-lts-utopic | Ubuntu:14.04:LTS | 3.16.0-25.33~14.04.2 |
| linux-aws | Ubuntu:14.04:LTS | 4.4.0-1002.2 |
| linux-lts-wily | Ubuntu:14.04:LTS | 4.2.0-18.22~14.04.1 |
| linux-hwe | Ubuntu:16.04:LTS | 4.8.0-36.36~16.04.1 |
| linux-raspi2 | Ubuntu:16.04:LTS | 4.2.0-1013.19 |
| linux | Ubuntu:14.04:LTS | 3.11.0-12.19 |
| linux-gke | Ubuntu:16.04:LTS | 4.4.0-1003.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Jun 7, 2013 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Aug 6, 2024 CVE Updated
- Mar 5, 2026 Distribution Patch (42 in total, the first dated here)
- Mar 5, 2026 Security Advisory (16 in total, the first dated here)
- Oct 24, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2013-2851
vulnetix vdb fixes CVE-2013-2851
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2013-2851/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2013:1783 vendor-advisoryx_refsource_REDHAT
- [linux-kernel] 20130606 [PATCH 1/8] block: do not pass disk names as format strings mailing-listx_refsource_MLIST
- USN-1913-1 vendor-advisoryx_refsource_UBUNTU
- SUSE-SU-2013:1473 vendor-advisoryx_refsource_SUSE
- RHSA-2013:1645 vendor-advisoryx_refsource_REDHAT
- DSA-2766 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- openSUSE-SU-2013:1971 vendor-advisoryx_refsource_SUSE
- SUSE-SU-2013:1474 vendor-advisoryx_refsource_SUSE
- RHSA-2014:0284 vendor-advisoryx_refsource_REDHAT
- USN-1941-1 vendor-advisoryx_refsource_UBUNTU
- [oss-security] 20130606 Linux kernel format string flaws mailing-listx_refsource_MLIST
- USN-1942-1 vendor-advisoryx_refsource_UBUNTU
- USN-1912-1 vendor-advisoryx_refsource_UBUNTU