CVE-2024-58016

In the Linux kernel, the following vulnerability has been resolved:

safesetid: check size of policy writes

syzbot attempts to write a buffer with a large size to a sysfs entry
with writes handled by handle_policy_update(), triggering a warning
in kmalloc.

Check the size specified for write buffers before allocating.

[PM: subject tweak]

More information : https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94