Linux
accel/amdxdna: Fix use-after-free of mm_struct in job scheduler
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= aac243092b707bb3018e951d470cc1a9bcbaba6c, < 6875ee2bef48f5d9f045d81a8a4d68893f768a8a
- >= aac243092b707bb3018e951d470cc1a9bcbaba6c, < e8fadbffc19a233d1eedebfb8df0f522d1388280
- >= aac243092b707bb3018e951d470cc1a9bcbaba6c, < faebb7ba1ac65fa5810b640df02ce04e509fdc11
Fixed in 6875ee2bef48f5d9f045d81a8a4d68893f768a8a, e8fadbffc19a233d1eedebfb8df0f522d1388280, faebb7ba1ac65fa5810b640df02ce04e509fdc11
- 6.14
Fixed in 0, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 6875ee2bef48f5d9f045d81a8a4d68893f768a8a or e8fadbffc19a233d1eedebfb8df0f522d1388280 or faebb7ba1ac65fa5810b640df02ce04e509fdc11 or later.
Upgrade Linux to 0 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.