{"id":71729,"date":"2025-10-15T11:45:37","date_gmt":"2025-10-15T08:15:37","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-39994-media-tuner-xc5000-fix-use-after-free-in-xc5000_release\/"},"modified":"2025-10-15T11:45:37","modified_gmt":"2025-10-15T08:15:37","slug":"cve-2025-39994-media-tuner-xc5000-fix-use-after-free-in-xc5000_release","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-39994-media-tuner-xc5000-fix-use-after-free-in-xc5000_release\/","title":{"rendered":"CVE-2025-39994 &#8211; media: tuner: xc5000: Fix use-after-free in xc5000_release"},"content":{"rendered":"<p>CVE ID : CVE-2025-39994<\/p>\n<p>Published :  Oct. 15, 2025, 8:15 a.m. | 24\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>media: tuner: xc5000: Fix use-after-free in xc5000_release<\/p>\n<p>The original code uses cancel_delayed_work() in xc5000_release(), which<br \/>\ndoes not guarantee that the delayed work item timer_sleep has fully<br \/>\ncompleted if it was already running. This leads to use-after-free scenarios<br \/>\nwhere xc5000_release() may free the xc5000_priv while timer_sleep is still<br \/>\nactive and attempts to dereference the xc5000_priv.<\/p>\n<p>A typical race condition is illustrated below:<\/p>\n<p>CPU 0 (release thread)                 | CPU 1 (delayed work callback)<br \/>\nxc5000_release()                       | xc5000_do_timer_sleep()<br \/>\n  cancel_delayed_work()                |<br \/>\n  hybrid_tuner_release_state(priv)     |<br \/>\n    kfree(priv)                        |<br \/>\n                                       |   priv = container_of() \/\/ UAF<\/p>\n<p>Replace cancel_delayed_work() with cancel_delayed_work_sync() to ensure<br \/>\nthat the timer_sleep is properly canceled before the xc5000_priv memory<br \/>\nis deallocated.<\/p>\n<p>A deadlock concern was considered: xc5000_release() is called in a process<br \/>\ncontext and is not holding any locks that the timer_sleep work item might<br \/>\nalso need. Therefore, the use of the _sync() variant is safe here.<\/p>\n<p>This bug was initially identified through static analysis.<\/p>\n[hverkuil: fix typo in Subject: tunner -&gt; tuner]\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-39994 Published : Oct. 15, 2025, 8:15 a.m. | 24\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-71729","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=71729"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71729\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=71729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=71729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=71729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}