Bug 2301512 (CVE-2024-42146) - CVE-2024-42146 kernel: drm/xe: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf
Summary: CVE-2024-42146 kernel: drm/xe: Add outer runtime_pm protection to xe_live_kte...
Keywords:
Status: NEW
Alias: CVE-2024-42146
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2302011
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:38 UTC by OSIDB Bzimport
Modified: 2024-09-06 10:07 UTC (History)
4 users (show)

Fixed In Version: kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:38:51 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/xe: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf

Any kunit doing any memory access should get their own runtime_pm
outer references since they don't use the standard driver API
entries. In special this dma_buf from the same driver.

Found by pre-merge CI on adding WARN calls for unprotected
inner callers:

<6> [318.639739]     # xe_dma_buf_kunit: running xe_test_dmabuf_import_same_driver
<4> [318.639957] ------------[ cut here ]------------
<4> [318.639967] xe 0000:4d:00.0: Missing outer runtime PM protection
<4> [318.640049] WARNING: CPU: 117 PID: 3832 at drivers/gpu/drm/xe/xe_pm.c:533 xe_pm_runtime_get_noresume+0x48/0x60 [xe]

Comment 1 Mauro Matteo Cascella 2024-07-31 10:46:13 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073032-CVE-2024-42146-cbd0@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-31 10:46:35 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2302011]


Note You need to log in before you can comment on or make changes to this bug.