CVE-2024-49981

media: venus: fix use after free bug in venus_remove due to race condition

State
Published
Severity
7.8 High
Published
Oct 21, 2024
Updated
Aug 5, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before 5098b9e6377577fe13d03e1d8914930f014a3314Affected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before 63bbe26471ebdcc3c20bb4cc3950d666279ad658Affected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before 60b6968341a6dd5353554f3e72db554693a128a5Affected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before bf6be32e2d39f6301ff1831e249d32a8744ab28aAffected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before 2a541fcc0bd2b05a458e9613376df1289ec11621Affected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before b0686aedc5f1343442d044bd64eeac7e7a391f4eAffected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before d925e9f7fb5a2dbefd1a73fc01061f38c7becd4cAffected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before 10941d4f99a5a34999121b314afcd9c0a1c14f15Affected
  • af2c3834c8ca7cc65d15592ac671933df8848115 to before c5a85ed88e043474161bbfe54002c89c1cb50ee2Affected
LinuxLinux
  • 4.13Affected
  • before 4.13Not affected
  • 4.19.323 through 4.19.*Not affected
  • 5.4.285 through 5.4.*Not affected
  • 5.10.227 through 5.10.*Not affected
  • 5.15.168 through 5.15.*Not affected
  • 6.1.113 through 6.1.*Not affected
  • 6.6.55 through 6.6.*Not affected
  • 6.10.14 through 6.10.*Not affected
  • 6.11.3 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.