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 handlepolicyupdate(), triggering a warning in kmalloc.
Check the size specified for write buffers before allocating.
[PM: subject tweak]
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 1788.0,
"function_hash": "199534380473151147614758812852436883552"
},
"target": {
"file": "security/safesetid/securityfs.c",
"function": "handle_policy_update"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c71d35676d46090c891b6419f253fb92a1a9f4eb",
"signature_version": "v1",
"id": "CVE-2024-58016-115beb34"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"183512882972593163605591207953433222373",
"44542002887139329608198651771045521157",
"34383533727373913450659229225295308090"
],
"threshold": 0.9
},
"target": {
"file": "security/safesetid/securityfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@976284b94f2021df09829e37a367e19b84d9e5f3",
"signature_version": "v1",
"id": "CVE-2024-58016-25356867"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"183512882972593163605591207953433222373",
"44542002887139329608198651771045521157",
"34383533727373913450659229225295308090"
],
"threshold": 0.9
},
"target": {
"file": "security/safesetid/securityfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36b385d0f2b4c0bf41d491e19075ecd990d2bf94",
"signature_version": "v1",
"id": "CVE-2024-58016-2ffc2519"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"183512882972593163605591207953433222373",
"44542002887139329608198651771045521157",
"34383533727373913450659229225295308090"
],
"threshold": 0.9
},
"target": {
"file": "security/safesetid/securityfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c71d35676d46090c891b6419f253fb92a1a9f4eb",
"signature_version": "v1",
"id": "CVE-2024-58016-56c0f590"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"183512882972593163605591207953433222373",
"44542002887139329608198651771045521157",
"34383533727373913450659229225295308090"
],
"threshold": 0.9
},
"target": {
"file": "security/safesetid/securityfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f09ff307c7299392f1c88f763299e24bc99811c7",
"signature_version": "v1",
"id": "CVE-2024-58016-65131a55"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 1788.0,
"function_hash": "199534380473151147614758812852436883552"
},
"target": {
"file": "security/safesetid/securityfs.c",
"function": "handle_policy_update"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96fae5bd1589731592d30b3953a90a77ef3928a6",
"signature_version": "v1",
"id": "CVE-2024-58016-a4921410"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 1788.0,
"function_hash": "199534380473151147614758812852436883552"
},
"target": {
"file": "security/safesetid/securityfs.c",
"function": "handle_policy_update"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f09ff307c7299392f1c88f763299e24bc99811c7",
"signature_version": "v1",
"id": "CVE-2024-58016-b1cd9dfa"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"183512882972593163605591207953433222373",
"44542002887139329608198651771045521157",
"34383533727373913450659229225295308090"
],
"threshold": 0.9
},
"target": {
"file": "security/safesetid/securityfs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96fae5bd1589731592d30b3953a90a77ef3928a6",
"signature_version": "v1",
"id": "CVE-2024-58016-da5b37fa"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 1788.0,
"function_hash": "199534380473151147614758812852436883552"
},
"target": {
"file": "security/safesetid/securityfs.c",
"function": "handle_policy_update"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@976284b94f2021df09829e37a367e19b84d9e5f3",
"signature_version": "v1",
"id": "CVE-2024-58016-e192d945"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 1788.0,
"function_hash": "199534380473151147614758812852436883552"
},
"target": {
"file": "security/safesetid/securityfs.c",
"function": "handle_policy_update"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36b385d0f2b4c0bf41d491e19075ecd990d2bf94",
"signature_version": "v1",
"id": "CVE-2024-58016-eb27aba7"
}
]