Bug 2320449 (CVE-2024-49865) - CVE-2024-49865 kernel: drm/xe/vm: move xa_alloc to prevent UAF
Summary: CVE-2024-49865 kernel: drm/xe/vm: move xa_alloc to prevent UAF
Keywords:
Status: NEW
Alias: CVE-2024-49865
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2320819
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:02 UTC by OSIDB Bzimport
Modified: 2024-10-21 23:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 19:02:45 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/xe/vm: move xa_alloc to prevent UAF

Evil user can guess the next id of the vm before the ioctl completes and
then call vm destroy ioctl to trigger UAF since create ioctl is still
referencing the same vm. Move the xa_alloc all the way to the end to
prevent this.

v2:
 - Rebase

(cherry picked from commit dcfd3971327f3ee92765154baebbaece833d3ca9)


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