CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's AMD GPU driver, specifically in the job scheduler where a use-after-free condition can occur due to improper handling of the `mm_struct` reference. This flaw could lead to potential memory corruption or crashes when the scheduler accesses a freed memory structure, posing a risk to system stability and security. Linux distributions utilizing the affected AMD GPU drivers should prioritize this fix to mitigate the associated risks.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix use-after-free of mm_struct in job scheduler amdxdna_cmd_submit() stores current->mm in job->mm without holding any reference. aie2_sched_job_run() later access job->mm from the DRM scheduler worker thread. With only a raw pointer and no structural reference, the mm_struct can be freed before the scheduler runs the job. Fix this by calling mmgrab() to hold a structural mm_count reference for the lifetime of the job, paired with mmdrop() in every cleanup path.