Description
In the Linux kernel, the following vulnerability has been resolved: drm: Account property blob allocations to memcg DRM_IOCTL_MODE_CREATEPROPBLOB allows userspace to allocate arbitrary-sized property blobs backed by kernel memory. Currently, the blob data allocation is not accounted to the allocating process's memory cgroup, allowing unprivileged users to trigger unbounded kernel memory consumption and potentially cause system-wide OOM. Mark the property blob data allocation with GFP_KERNEL_ACCOUNT so that the memory is properly charged to the caller's memcg. This ensures existing cgroup memory limits apply and prevents uncontrolled kernel memory growth without introducing additional policy or per-file limits.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before b6117210ed349356f8e6027ff020b4d620bca42b
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 815fa29cab3c67bebb9d0b5f41145cdd3a14d04d
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 866e0c1a9e7244d58ed74853cb22b81e1900cfdd
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before bbfaa5761f589a81031b493cb01275a990d6fb25
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 8e1664b9ee43608eb973d357ae5d858d30cbc9ca
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before cb8b9a1755fe9f38e4fb7f287486d7e7fab3dba4
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 405fd652d8fedff219a8f48daf8f20e881e303ab
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 26b4309a3ab82a0697751cde52eb336c29c19035
5.10.252 (semver)
5.15.202 (semver)
6.1.165 (semver)
6.6.128 (semver)
6.12.75 (semver)
6.18.16 (semver)
6.19.6 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/b6117210ed349356f8e6027ff020b4d620bca42b
git.kernel.org/...c/815fa29cab3c67bebb9d0b5f41145cdd3a14d04d
git.kernel.org/...c/866e0c1a9e7244d58ed74853cb22b81e1900cfdd
git.kernel.org/...c/bbfaa5761f589a81031b493cb01275a990d6fb25
git.kernel.org/...c/8e1664b9ee43608eb973d357ae5d858d30cbc9ca
git.kernel.org/...c/cb8b9a1755fe9f38e4fb7f287486d7e7fab3dba4
git.kernel.org/...c/405fd652d8fedff219a8f48daf8f20e881e303ab
git.kernel.org/...c/26b4309a3ab82a0697751cde52eb336c29c19035