CVE-2024-49981
media: venus: fix use after free bug in venus_remove due to race condition
Check your servers for CVE-2024-49981
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-49981 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
media: venus: fix use after free bug in venus_remove due to race condition
in venus_probe, core->work is bound with venus_sys_error_handler, which is used to handle error. The code use core->sys_err_done to make sync work. The core->work is started in venus_event_notify.
If we call venus_remove, there might be an unfished work. The possible sequence is as follows:
CPU0 CPU1
|venus_sys_error_handler venus_remove | hfi_destroy | venus_hfi_destroy | kfree(hdev); | |hfi_reinit |venus_hfi_queues_reinit |//use hdev
Fix it by canceling the work in venus_remove.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.20% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from af2c3834c8ca7cc65d15592ac671933df8848115, before 5098b9e6377577fe13d03e1d8914930f014a3314 affected from af2c3834c8ca7cc65d15592ac671933df8848115, before 63bbe26471ebdcc3c20bb4cc3950d666279ad658 affected from af2c3834c8ca7cc65d15592ac671933df8848115, before 60b6968341a6dd5353554f3e72db554693a128a5 affected from af2c3834c8ca7cc65d15592ac671933df8848115, before bf6be32e2d39f6301ff1831e249d32a8744ab28a affected from af2c3834c8ca7cc65d15592ac671933df8848115, before 2a541fcc0bd2b05a458e9613376df1289ec11621 affected from af2c3834c8ca7cc65d15592ac671933df8848115, before b0686aedc5f1343442d044bd64eeac7e7a391f4e affected from af2c3834c8ca7cc65d15592ac671933df8848115, before d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c affected from af2c3834c8ca7cc65d15592ac671933df8848115, before 10941d4f99a5a34999121b314afcd9c0a1c14f15 affected from af2c3834c8ca7cc65d15592ac671933df8848115, before c5a85ed88e043474161bbfe54002c89c1cb50ee2
Other versions: unaffected
|
| Linux |
affected 4.13 unaffected before 4.13 unaffected from 4.19.323 up to and including 4.19.* unaffected from 5.4.285 up to and including 5.4.* unaffected from 5.10.227 up to and including 5.10.* unaffected from 5.15.168 up to and including 5.15.* unaffected from 6.1.113 up to and including 6.1.* unaffected from 6.6.55 up to and including 6.6.* unaffected from 6.10.14 up to and including 6.10.* unaffected from 6.11.3 up to and including 6.11.* unaffected 6.12 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-49981 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-49981
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-49981
trivy image --scanners vuln IMAGE | grep CVE-2024-49981
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314 git.kernel.org
- https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658 git.kernel.org
- https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5 git.kernel.org
- https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a git.kernel.org
- https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621 git.kernel.org
- https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e git.kernel.org
- https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c git.kernel.org
- https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15 git.kernel.org
- https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-49981 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse