Skip to main content
EPSS 0.1%top 96%

Linux aws: In the Linux kernel, the following vulnerability has been resolved: media: tuner: xc5000: Fix use-after-free in xc5000_release The original code… (CVE-2025-39994)

0
Medium
Published: 10/15/2025 (10/15/2025, 08:15:00 UTC)
Source: GCVE Database
Product: linux-aws

Description

In the Linux kernel, the following vulnerability has been resolved: media: tuner: xc5000: Fix use-after-free in xc5000_release The original code uses cancel_delayed_work() in xc5000_release(), which does not guarantee that the delayed work item timer_sleep has fully completed if it was already running. This leads to use-after-free scenarios where xc5000_release() may free the xc5000_priv while timer_sleep is still active and attempts to dereference the xc5000_priv. A typical race condition is illustrated below: CPU 0 (release thread) | CPU 1 (delayed work callback) xc5000_release() | xc5000_do_timer_sleep() cancel_delayed_work() | hybrid_tuner_release_state(priv) | kfree(priv) | | priv = container_of() // UAF Replace cancel_delayed_work() with cancel_delayed_work_sync() to ensure that the timer_sleep is properly canceled before the xc5000_priv memory is deallocated. A deadlock concern was considered: xc5000_release() is called in a process context and is not holding any locks that the timer_sleep work item might also need. Therefore, the use of the _sync() variant is safe here. This bug was initially identified through static analysis. [hverkuil: fix typo in Subject: tunner -> tuner]

CVSS v3.1

Score 7.3high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected software

Affected versions
<5.15.0-1100.107~20.04.2<5.15.0-1110.119~20.04.1<5.15.0-1100.109~20.04.1<5.15.0-170.180~20.04.3<5.15.0-1094.97~20.04.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:09:36 UTC

Technical Analysis

The Linux kernel's media tuner driver (xc5000) contained a use-after-free vulnerability in the xc5000_release() function. The issue arose because cancel_delayed_work() does not guarantee that a delayed work item (timer_sleep) has fully completed before the memory (xc5000_priv) is freed. This could cause the delayed work callback to access freed memory, leading to use-after-free conditions. The fix replaces cancel_delayed_work() with cancel_delayed_work_sync(), ensuring the delayed work is fully canceled before freeing memory. The fix is safe from deadlocks as xc5000_release() runs in process context without holding locks needed by the delayed work. This vulnerability was discovered through static analysis.

Potential Impact

Successful exploitation of this vulnerability could lead to use-after-free conditions causing memory corruption, potentially resulting in privilege escalation, denial of service, or arbitrary code execution within the kernel context. The CVSS vector indicates local attack vector with low complexity, requiring limited privileges and user interaction, and impacts confidentiality, integrity, and availability at a high level.

Mitigation Recommendations

A fix is available that replaces cancel_delayed_work() with cancel_delayed_work_sync() in the xc5000_release() function to properly cancel delayed work before freeing memory. Users should apply the official Linux kernel patches that address this issue when they become available. Patch status is not yet confirmed in the provided data; check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-ghgh-r6c5-cgx8
Osv Schema Version
1.4.0
Aliases
["CVE-2025-39994"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d79c2644c7f847b516

Added to database: 07/30/2026, 15:50:47 UTC

Last enriched: 07/30/2026, 16:09:36 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 18

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses