Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Preallocate hardware context schedulers The hardware context scheduler fence is exposed through drm_syncobj_add_point(). After a hardware context is destroyed, userspace can still call drm_sched_fence_get_timeline_name() on the fence through SYNC_IOC_FILE_INFO. This results in a use-after-free when accessing fence->sched->name. Preallocate hardware context schedulers and free them during device teardown instead. A destroyed hardware context no longer frees its scheduler, ensuring that the scheduler remains valid while its fences are still accessible.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- None
- Availability
- High impact
References
- git.kernel.org/stable/c/e76d6740254afede99334d965ea9b22c4b34a30b
- git.kernel.org/stable/c/d7957565e05797d1eb3ba7d3c585af17303d4717
- git.kernel.org/stable/c/f7afecd54296cf7ad6fa36f692d2a7427e32f25d
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.