# CVE-2024-26875: media: pvrusb2: fix uaf in pvr2\_context\_set\_notify

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-04-17T10:27:33.914Z
- **Modified:** 2026-10-15T01:17:27.323Z

## Who should check

- Anyone running Linux \>= e5be15c63804e05b5a94197524023702a259e308, \< ed8000e1e8e9684ab6c30cf2b526c0cea039929c; \>= e5be15c63804e05b5a94197524023702a259e308, \< d29ed08964cec8b9729bc55c7bb23f679d7a18fb; \>= e5be15c63804e05b5a94197524023702a259e308, \< ab896d93fd6a2cd1afeb034c3cc9226cb499209f; \>= e5be15c63804e05b5a94197524023702a259e308, \< eb6e9dce979c08210ff7249e5e0eceb8991bfcd7; \>= e5be15c63804e05b5a94197524023702a259e308, \< 3a1ec89708d2e57e2712f46241282961b1a7a475; \>= e5be15c63804e05b5a94197524023702a259e308, \< 8e60b99f6b7ccb3badeb512f5eb613ad45904592; \>= e5be15c63804e05b5a94197524023702a259e308, \< 40cd818fae875c424a8335009db33c7b5a07de3a; \>= e5be15c63804e05b5a94197524023702a259e308, \< eaa410e05bdf562c90b23cdf2d9327f9c4625e16; \>= e5be15c63804e05b5a94197524023702a259e308, \< 0a0b79ea55de8514e1750884e5fec77f9fdd01ee
- Anyone running Linux 2.6.26

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: pvrusb2: fix uaf in pvr2\_context\_set\_notify

\[Syzbot reported\]
BUG: KASAN: slab-use-after-free in pvr2\_context\_set\_notify+0x2c4/0x310 drivers/media/usb/pvrusb2/pvrusb2-context.c:35
Read of size 4 at addr ffff888113aeb0d8 by task kworker/1:1/26

CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.8.0-rc1-syzkaller-00046-gf1a27f081c1f \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: usb\_hub\_wq hub\_event
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xd9/0x1b0 lib/dump\_stack.c:106
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0xc4/0x620 mm/kasan/report.c:488
 kasan\_report+0xda/0x110 mm/kasan/report.c:601
 pvr2\_context\_set\_notify+0x2c4/0x310 drivers/media/usb/pvrusb2/pvrusb2-context.c:35
 pvr2\_context\_notify drivers/media/usb/pvrusb2/pvrusb2-context.c:95 \[inline\]
 pvr2\_context\_disconnect+0x94/0xb0 drivers/media/usb/pvrusb2/pvrusb2-context.c:272

Freed by task 906:
kasan\_save\_stack+0x33/0x50 mm/kasan/common.c:47
kasan\_save\_track+0x14/0x30 mm/kasan/common.c:68
kasan\_save\_free\_info+0x3f/0x60 mm/kasan/generic.c:640
poison\_slab\_object mm/kasan/common.c:241 \[inline\]
\_\_kasan\_slab\_free+0x106/0x1b0 mm/kasan/common.c:257
kasan\_slab\_free include/linux/kasan.h:184 \[inline\]
slab\_free\_hook mm/slub.c:2121 \[inline\]
slab\_free mm/slub.c:4299 \[inline\]
kfree+0x105/0x340 mm/slub.c:4409
pvr2\_context\_check drivers/media/usb/pvrusb2/pvrusb2-context.c:137 \[inline\]
pvr2\_context\_thread\_func+0x69d/0x960 drivers/media/usb/pvrusb2/pvrusb2-context.c:158

\[Analyze\]
Task A set disconnect\_flag = !0, which resulted in Task B's condition being met
and releasing mp, leading to this issue.

\[Fix\]
Place the disconnect\_flag assignment operation after all code in pvr2\_context\_disconnect()
to avoid this issue.

## Affected and fixed versions

- Linux: \>= e5be15c63804e05b5a94197524023702a259e308, \< ed8000e1e8e9684ab6c30cf2b526c0cea039929c; \>= e5be15c63804e05b5a94197524023702a259e308, \< d29ed08964cec8b9729bc55c7bb23f679d7a18fb; \>= e5be15c63804e05b5a94197524023702a259e308, \< ab896d93fd6a2cd1afeb034c3cc9226cb499209f; \>= e5be15c63804e05b5a94197524023702a259e308, \< eb6e9dce979c08210ff7249e5e0eceb8991bfcd7; \>= e5be15c63804e05b5a94197524023702a259e308, \< 3a1ec89708d2e57e2712f46241282961b1a7a475; \>= e5be15c63804e05b5a94197524023702a259e308, \< 8e60b99f6b7ccb3badeb512f5eb613ad45904592; \>= e5be15c63804e05b5a94197524023702a259e308, \< 40cd818fae875c424a8335009db33c7b5a07de3a; \>= e5be15c63804e05b5a94197524023702a259e308, \< eaa410e05bdf562c90b23cdf2d9327f9c4625e16; \>= e5be15c63804e05b5a94197524023702a259e308, \< 0a0b79ea55de8514e1750884e5fec77f9fdd01ee (cvelist)
- Linux: 2.6.26 (cvelist)

## Mitigation

- Upgrade Linux to 0a0b79ea55de8514e1750884e5fec77f9fdd01ee or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26875. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26875.md
Affected: Linux >= e5be15c63804e05b5a94197524023702a259e308, < ed8000e1e8e9684ab6c30cf2b526c0cea039929c; >= e5be15c63804e05b5a94197524023702a259e308, < d29ed08964cec8b9729bc55c7bb23f679d7a18fb; >= e5be15c63804e05b5a94197524023702a259e308, < ab896d93fd6a2cd1afeb034c3cc9226cb499209f; >= e5be15c63804e05b5a94197…
Fixed in: Linux 3a1ec89708d2e57e2712f46241282961b1a7a475, Linux 8e60b99f6b7ccb3badeb512f5eb613ad45904592, Linux 40cd818fae875c424a8335009db33c7b5a07de3a, Linux 0a0b79ea55de8514e1750884e5fec77f9fdd01ee

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26875 being exploited?

There is no confirmed exploitation: CVE-2024-26875 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26875?

Medium: CVSS 6.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-26875?

Linux \>= e5be15c63804e05b5a94197524023702a259e308, \< ed8000e1e8e9684ab6c30cf2b526c0cea039929c; \>= e5be15c63804e05b5a94197524023702a259e308, \< d29ed08964cec8b9729bc55c7bb23f679d7a18fb; \>= e5be15c63804e05b5a94197524023702a259e308, \< ab896d93fd6a2cd1afeb034c3cc9226cb499209f; \>= e5be15c63804e05b5a94197524023702a259e308, \< eb6e9dce979c08210ff7249e5e0eceb8991bfcd7; \>= e5be15c63804e05b5a94197524023702a259e308, \< 3a1ec89708d2e57e2712f46241282961b1a7a475; \>= e5be15c63804e05b5a94197524023702a259e308, \< 8e60b99f6b7ccb3badeb512f5eb613ad45904592; \>= e5be15c63804e05b5a94197524023702a259e308, \< 40cd818fae875c424a8335009db33c7b5a07de3a; \>= e5be15c63804e05b5a94197524023702a259e308, \< eaa410e05bdf562c90b23cdf2d9327f9c4625e16; \>= e5be15c63804e05b5a94197524023702a259e308, \< 0a0b79ea55de8514e1750884e5fec77f9fdd01ee; Linux 2.6.26.

### Is there a fix for CVE-2024-26875?

Yes. Fixed in Linux 3a1ec89708d2e57e2712f46241282961b1a7a475, Linux 8e60b99f6b7ccb3badeb512f5eb613ad45904592, Linux 40cd818fae875c424a8335009db33c7b5a07de3a, Linux 0a0b79ea55de8514e1750884e5fec77f9fdd01ee. Upgrade Linux to 0a0b79ea55de8514e1750884e5fec77f9fdd01ee or later.

### How do I check if I'm affected by CVE-2024-26875?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ed8000e1e8e9684ab6c30cf2b526c0cea039929c>
- patch: <https://git.kernel.org/stable/c/d29ed08964cec8b9729bc55c7bb23f679d7a18fb>
- patch: <https://git.kernel.org/stable/c/ab896d93fd6a2cd1afeb034c3cc9226cb499209f>
- patch: <https://git.kernel.org/stable/c/eb6e9dce979c08210ff7249e5e0eceb8991bfcd7>
- patch: <https://git.kernel.org/stable/c/3a1ec89708d2e57e2712f46241282961b1a7a475>
- patch: <https://git.kernel.org/stable/c/8e60b99f6b7ccb3badeb512f5eb613ad45904592>
- patch: <https://git.kernel.org/stable/c/40cd818fae875c424a8335009db33c7b5a07de3a>
- patch: <https://git.kernel.org/stable/c/eaa410e05bdf562c90b23cdf2d9327f9c4625e16>
- patch: <https://git.kernel.org/stable/c/0a0b79ea55de8514e1750884e5fec77f9fdd01ee>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26875>

HTML: <https://flawdb.com/CVE-2024-26875> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26875>
