drm/tests: shmem: Hold reservation lock around madvise
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.166.19.67.0In the Linux kernel, the following vulnerability has been resolved:
drm/tests: shmem: Hold reservation lock around madvise
Acquire and release the GEM object's reservation lock around calls to the object's madvide operation. The tests use drm_gem_shmem_madvise_locked(), which led to errors such as show below.
[ 58.339389] WARNING: CPU: 1 PID: 1352 at drivers/gpu/drm/drm_gem_shmem_helper.c:499 drm_gem_shmem_madvise_locked+0xde/0x140
Only export the new helper drm_gem_shmem_madvise() for Kunit tests. This is not an interface for regular drivers.
From the CVE record · Linux
The Linux kernel DRM shmem tests called a GEM object's madvise operation without holding its reservation lock, producing a kernel warning. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with DRM shmem tests should check their builds; affected versions are not specified.