Description
In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: reject zero-size notifier object allocation nouveau_abi16_ioctl_notifierobj_alloc() passes the userspace-controlled info->size to nvkm_mm_head() as both size_max and size_min without a lower bound. A zero size satisfies the allocator's "e - s < size_min" gate (size_min == 0 makes the unsigned comparison inert) and yields a zero-length node, after which args.limit = ntfy->node->offset + ntfy->node->length - 1; underflows (offset 0, length 0 -> 0xffffffff) into an oversized ~4 GiB DMA window. The dma object constructor only rejects start > limit, so the validly ordered [base, base + 0xffffffff] range passes and is programmed into the GPU DMA context. The ioctl is DRM_RENDER_ALLOW, so any render node client can trigger this on pre-Fermi hardware. Reject a zero-size request before allocating anything.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
ebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < 41bb34210b2a34c212a6a5b2b0ca7b7f7223bcceaffectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < 7876ae4041729b3e86a502ff56c8b64bbec38a1eaffectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < b9be3f6da8c4d0811bb487cb30ded625b7413e0baffectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < 37d015a5a2a569b30a21dcb080bb63b20173a6f9affectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < 8d125070102467286ebe3b97661161446fe69ca8affectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < c518337e597df7204244b5a174277286eb6e14faaffectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < f1ef16495b494249ece0ae037121a6ed04015c8eaffectedebb945a94bba2ce8dff7b0942ff2b3f2a52a0a69 to < 38125d38d850bd2fdd5d7840c3bd52d9d208995baffected
Linux Linux
Default version status: affected
3.7affected0 to < 3.7unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.117 to ≤ 6.12.*unaffected6.18.63 to ≤ 6.18.*unaffected7.3.4 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/41bb34210b2a34c212a6a5b2b0ca7b7f7223bcce ↗
- https://git.kernel.org/stable/c/7876ae4041729b3e86a502ff56c8b64bbec38a1e ↗
- https://git.kernel.org/stable/c/b9be3f6da8c4d0811bb487cb30ded625b7413e0b ↗
- https://git.kernel.org/stable/c/37d015a5a2a569b30a21dcb080bb63b20173a6f9 ↗
- https://git.kernel.org/stable/c/8d125070102467286ebe3b97661161446fe69ca8 ↗
- https://git.kernel.org/stable/c/c518337e597df7204244b5a174277286eb6e14fa ↗
- https://git.kernel.org/stable/c/f1ef16495b494249ece0ae037121a6ed04015c8e ↗
- https://git.kernel.org/stable/c/38125d38d850bd2fdd5d7840c3bd52d9d208995b ↗