Skip to content

CVE-2013-2094 — The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9…

Key facts

CVE-2013-2094 is a High (8.4) vulnerability: The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9…. This entry ships a detection-only PoC and a Docker test lab. It is on the CISA Known Exploited Vulnerabilities (KEV) catalog (added 2022-09-15), confirming active exploitation in the wild.

Actively exploited — on the CISA KEV catalog

CVE-2013-2094 is listed on the CISA Known Exploited Vulnerabilities (KEV) catalog (added 2022-09-15), confirming exploitation in the wild. Federal remediation deadline: 2022-10-06. Prioritise patching and deploy the detection and prevention rules below.

CVE CVE-2013-2094
Severity High (8.4)
CISA KEV Actively exploited (added 2022-09-15)
Detection / prevention —
PoC poc.py
Source 2013/CVE-2013-2094/

Details

English | 한국어

Description

The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows local users to gain privileges via a crafted perf_event_open system call.

Vulnerability Details

Property Value
CVE ID CVE-2013-2094
CVSS Score 8.4

Proof of Concept

Download

# Download PoC script
curl -O https://raw.githubusercontent.com/fankh/vulnerability-poc/main/2013/CVE-2013-2094/poc.py

Usage

# Run PoC against target
python3 poc.py --target <TARGET_URL>

# With authentication
python3 poc.py --target <TARGET_URL> --username <USER> --password <PASS>

⚠️ Warning: This PoC is for authorized security testing only. It uses detection-only techniques and does not exploit or damage target systems.

Test Lab

This repository includes a Docker-based test environment with both vulnerable and patched applications.

Quick Start

# Clone and navigate to CVE directory
cd CVE-2013-2094

# Start both applications
docker-compose up -d

# Run tests
./run-tests.sh    # Linux/Mac
./run-tests.ps1   # Windows PowerShell

Application Endpoints

Application URL Status
Vulnerable App http://localhost:8080 Shows vulnerability
Patched App http://localhost:8081 Demonstrates fix

Directory Structure

├── README.md           # English documentation
├── README_KO.md        # Korean documentation
├── poc.py              # PoC detection script
├── docker-compose.yml  # Container orchestration
├── run-tests.sh        # Linux/Mac test runner
├── run-tests.ps1       # Windows test runner
├── vulnerable-app/     # Vulnerable version
│   ├── app.py
│   ├── Dockerfile
│   └── requirements.txt
└── patched-app/        # Fixed version
    ├── app.py
    ├── Dockerfile
    └── requirements.txt

References

  • http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=8176cced706b5e5d15887584150764894e94e02f
  • http://lists.centos.org/pipermail/centos-announce/2013-May/019729.html
  • http://lists.centos.org/pipermail/centos-announce/2013-May/019733.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00008.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00018.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00005.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00009.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00017.html
  • http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03652.html
  • http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03976.html
  • http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/04302.html
  • http://news.ycombinator.com/item?id=5703758
  • http://packetstormsecurity.com/files/121616/semtex.c
  • http://rhn.redhat.com/errata/RHSA-2013-0830.html
  • http://twitter.com/djrbliss/statuses/334301992648331267
  • http://www.exploit-db.com/exploits/33589
  • http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.8.9
  • http://www.mandriva.com/security/advisories?name=MDVSA-2013:176
  • http://www.openwall.com/lists/oss-security/2013/05/14/6
  • http://www.osvdb.org/93361
  • http://www.reddit.com/r/netsec/comments/1eb9iw
  • http://www.ubuntu.com/usn/USN-1825-1
  • http://www.ubuntu.com/usn/USN-1826-1
  • http://www.ubuntu.com/usn/USN-1827-1
  • http://www.ubuntu.com/usn/USN-1828-1
  • http://www.ubuntu.com/usn/USN-1836-1
  • http://www.ubuntu.com/usn/USN-1838-1
  • https://bugzilla.redhat.com/show_bug.cgi?id=962792
  • https://github.com/torvalds/linux/commit/8176cced706b5e5d15887584150764894e94e02f
  • http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=8176cced706b5e5d15887584150764894e94e02f
  • http://lists.centos.org/pipermail/centos-announce/2013-May/019729.html
  • http://lists.centos.org/pipermail/centos-announce/2013-May/019733.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00008.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00018.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00005.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00009.html
  • http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00017.html
  • http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03652.html
  • http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03976.html
  • http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/04302.html
  • http://news.ycombinator.com/item?id=5703758
  • http://packetstormsecurity.com/files/121616/semtex.c
  • http://rhn.redhat.com/errata/RHSA-2013-0830.html
  • http://twitter.com/djrbliss/statuses/334301992648331267
  • http://www.exploit-db.com/exploits/33589
  • http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.8.9
  • http://www.mandriva.com/security/advisories?name=MDVSA-2013:176
  • http://www.openwall.com/lists/oss-security/2013/05/14/6
  • http://www.osvdb.org/93361
  • http://www.reddit.com/r/netsec/comments/1eb9iw
  • http://www.ubuntu.com/usn/USN-1825-1
  • http://www.ubuntu.com/usn/USN-1826-1
  • http://www.ubuntu.com/usn/USN-1827-1
  • http://www.ubuntu.com/usn/USN-1828-1
  • http://www.ubuntu.com/usn/USN-1836-1
  • http://www.ubuntu.com/usn/USN-1838-1
  • https://bugzilla.redhat.com/show_bug.cgi?id=962792
  • https://github.com/torvalds/linux/commit/8176cced706b5e5d15887584150764894e94e02f
  • https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2013-2094

Generated by PoC Generator on 2026-07-12T07:40:03.669210185

Frequently asked questions

What is CVE-2013-2094?

CVE-2013-2094 is a High (8.4) vulnerability: The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9…. This entry ships a detection-only PoC and a Docker test lab. It is on the CISA Known Exploited Vulnerabilities (KEV) catalog (added 2022-09-15), confirming active exploitation in the wild.

How do I detect CVE-2013-2094?

Run the detection-only PoC included with this entry against your Docker test lab to confirm whether a target is affected; pair it with your own IDS logging.

How do I block or mitigate CVE-2013-2094?

Upgrade to a fixed version per the vendor advisory; the NVD record lists the affected versions. Use the included PoC to verify your remediation.

Is CVE-2013-2094 actively exploited?

Yes. CVE-2013-2094 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, added 2022-09-15, which means it has been exploited in the wild. CISA set a federal remediation deadline of 2022-10-06. Prioritise patching and deploy the detection and prevention rules above.


For authorized security testing and research only. See the full source and NVD record.