| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2023-52930: drm/i915: Fix potential bit_17 double-free |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| drm/i915: Fix potential bit_17 double-free |
| |
| A userspace with multiple threads racing I915_GEM_SET_TILING to set the |
| tiling to I915_TILING_NONE could trigger a double free of the bit_17 |
| bitmask. (Or conversely leak memory on the transition to tiled.) Move |
| allocation/free'ing of the bitmask within the section protected by the |
| obj lock. |
| |
| [tursulin: Correct fixes tag and added cc stable.] |
| (cherry picked from commit 10e0cbaaf1104f449d695c80bcacf930dcd3c42e) |
| |
| The Linux kernel CVE team has assigned CVE-2023-52930 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 5.10.168 with commit b591abac78e25269b12e3d7170c99463f8c5cb02 |
| Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 5.15.93 with commit e3ebc3e23bd9028a8a9a26cbc5985f99be445f65 |
| Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 6.1.11 with commit 0769f997a7b6d5cb8336db0b4ec3d2d311b8097c |
| Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 6.2 with commit 7057a8f126f14f14b040faecfa220fd27c6c2f85 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2023-52930 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/gpu/drm/i915/gem/i915_gem_tiling.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/b591abac78e25269b12e3d7170c99463f8c5cb02 |
| https://git.kernel.org/stable/c/e3ebc3e23bd9028a8a9a26cbc5985f99be445f65 |
| https://git.kernel.org/stable/c/0769f997a7b6d5cb8336db0b4ec3d2d311b8097c |
| https://git.kernel.org/stable/c/7057a8f126f14f14b040faecfa220fd27c6c2f85 |