Security Advisory

CVE-2013-2596: Linux fb_mmap Integer Overflow Local Root

Last updated:
  • CVE-2013-2596

CVE-2013-2596 is an integer overflow in the Linux framebuffer driver core: fb_mmap() miscalculates the size of a mapping, so a local user who can open the framebuffer device can map all kernel memory read-write and become root. It was used to root Android phones in 2013. NVD scores it 7.8, CISA lists it as exploited, and Linux 3.8.9 fixes it.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

3.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2013-2596 · Source: NVD

Affected components

ComponentCPEVersion range
Linux kernel (framebuffer core, drivers/video/fbmem.c)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*2.6.12 to before 3.0.75, 3.1 to before 3.2.45, 3.3 to before 3.4.42, 3.5 to before 3.8.9 (NVD); upstream fix fc9bbca8f650 with helper b4cbb197c7e7
Motorola Android 4.1.2 buildcpe:2.3:o:motorola:android:4.1.2:*:*:*:*:*:*:*Named in the CVE record as exploited by the Motochopper tool; fix depends on the device maker's kernel update
Debian linux packagepkg:deb/debian/linuxFixed in 3.2.46-1 for wheezy and 3.9-1 in unstable (Debian security tracker, as of 2026-11-25)

What does this mean for affected devices?

NVD describes CVE-2013-2596: "Integer overflow in the fb_mmap function in drivers/video/fbmem.c in the Linux kernel before 3.8.9, as used in a certain Motorola build of Android 4.1.2 and other products, allows local users to create a read-write memory mapping for the entirety of kernel memory, and consequently gain privileges, via crafted /dev/graphics/fb0 mmap2 system calls, as demonstrated by the Motochopper pwn program." MITRE is the CNA. NVD's Primary scores are CVSS v3.1 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and CVSS v2 6.9; CISA ADP gives the same 7.8. NVD and CISA ADP classify it as CWE-190, integer overflow; the KEV entry uses CWE-189 (NVD, CVE record).

What does the fix change?

The fix is Linus Torvalds' commit fc9bbca8f650, "vm: convert fb_mmap to vm_iomap_memory() helper", dated 2013-04-19, which CISA cites in the KEV entry. It replaces the framebuffer driver's own offset and length arithmetic with the new vm_iomap_memory() helper from commit b4cbb197c7e7, which checks that the requested range fits inside the device memory. Both commits appear in the Linux 3.8.9 changelog.

Which kernels and devices are affected?

NVD's ranges for linux:linux_kernel run from 2.6.12 to before 3.0.75, 3.2.45, 3.4.42 and 3.8.9, and NVD adds the Motorola Android 4.1.2 build named in the description. Debian's security tracker notes that the bug is in mainline fbmem code, so devices built on that code are affected beyond the Motorola phones the exploit targeted, and that exploitation needs access to /dev/fb0, which is not world-accessible on Debian. It lists the fix in 3.2.46-1 for wheezy. For an embedded device with a display, what decides exposure is the kernel version and which processes can open the framebuffer node. Move to a fixed stable kernel or backport fc9bbca8f650 and b4cbb197c7e7, and restrict the device node to the graphics service. How to fix memory corruption in embedded firmware covers integer overflows in size checks, and Linux kernel CVEs on embedded devices covers kernel triage. Other exploited Android kernel bugs: CVE-2013-6282 on ARM from the same year and CVE-2019-2215 in Binder.

Is CVE-2013-2596 exploited?

Yes. CISA added it to the KEV catalog on 2022-09-15 as "Linux Kernel Integer Overflow Vulnerability", with the required action "Apply updates per vendor instructions." and a due date of 2022-10-06; known ransomware campaign use is listed as Unknown. It is still listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.03212, the 88.41st percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (read 2026-11-25): status Analyzed, published 2013-04-13, CNA MITRE; fb_mmap integer overflow before 3.8.9, Motorola Android 4.1.2 build, Motochopper; NVD Primary CVSS v3.1 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H and CVSS v2 6.9; CISA ADP 7.8; CWE-190; CPE linux_kernel 2.6.12-<3.0.75, 3.1-<3.2.45, 3.3-<3.4.42, 3.5-<3.8.9 and motorola android 4.1.2. — NVD
  • CVE record: PUBLISHED, CNA mitre, published 2013-04-13; CISA ADP CVSS v3.1 7.8. — CVE.org
  • Commit fc9bbca8f650 (Linus Torvalds, 2013-04-19) "vm: convert fb_mmap to vm_iomap_memory() helper". — Linux kernel (GitHub mirror)
  • Linux 3.8.9 ChangeLog includes "vm: convert fb_mmap to vm_iomap_memory() helper" and "vm: add vm_iomap_memory() helper function". — kernel.org ChangeLog
  • Debian tracker: linux wheezy 3.2.46-1, unstable 3.9-1; note: issue is in mainline fbmem code, exploit targeted Motorola phones, both affected; exploit needs /dev/fb0, not world readable/writable on Debian. — Debian security tracker
  • KEV catalog 2026.11.24: dateAdded 2022-09-15, due 2022-10-06, required action "Apply updates per vendor instructions.", knownRansomwareCampaignUse Unknown, CWE-189; notes cite commit fc9bbca8f650. — CISA KEV
  • EPSS 0.03212, percentile 0.88407, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Linux commit fc9bbca8f650: vm: convert fb_mmap to vm_iomap_memory() helper
  3. Linux 3.8.9 ChangeLog
  4. Debian security tracker CVE-2013-2596
  5. CVE.org record CVE-2013-2596 (CNA: MITRE)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

What CVSS score does CVE-2013-2596 have?

NVD's Primary scores are CVSS v3.1 7.8 and CVSS v2 6.9, for a local attacker with low privileges. CISA ADP in the CVE record gives the same 7.8 (per NVD and the CVE record).

Which devices are affected by CVE-2013-2596?

The CVE record names a Motorola build of Android 4.1.2, but the bug is in mainline framebuffer code, so any device on a Linux kernel from 2.6.12 up to the fixed releases with an accessible framebuffer device is affected (per NVD and the Debian security tracker).

Which Linux kernel versions fix CVE-2013-2596?

Linux 3.0.75, 3.2.45, 3.4.42 and 3.8.9 and later, which carry commit fc9bbca8f650 and its helper b4cbb197c7e7. Debian fixed wheezy in 3.2.46-1 (per NVD, kernel.org and the Debian security tracker).

Is CVE-2013-2596 exploited in the wild?

Yes. CISA added it to KEV on 2022-09-15 and lists it as of 2026-11-25 in catalog version 2026.11.24, with ransomware use Unknown. FIRST EPSS gives 0.03212, the 88.41st percentile, in the 2026-11-24 dataset (per CISA KEV and FIRST EPSS).