cvelist/2024/53xxx/CVE-2024-53096.json

150 lines
9.5 KiB
JSON
Raw Normal View History

2024-11-19 18:00:35 +00:00
{
2024-11-25 22:00:37 +00:00
"data_version": "4.0",
2024-11-19 18:00:35 +00:00
"data_type": "CVE",
"data_format": "MITRE",
"CVE_data_meta": {
"ID": "CVE-2024-53096",
2024-11-25 22:00:37 +00:00
"ASSIGNER": "cve@kernel.org",
"STATE": "PUBLIC"
2024-11-19 18:00:35 +00:00
},
"description": {
"description_data": [
{
"lang": "eng",
2024-11-25 22:00:37 +00:00
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm: resolve faulty mmap_region() error path behaviour\n\nThe mmap_region() function is somewhat terrifying, with spaghetti-like\ncontrol flow and numerous means by which issues can arise and incomplete\nstate, memory leaks and other unpleasantness can occur.\n\nA large amount of the complexity arises from trying to handle errors late\nin the process of mapping a VMA, which forms the basis of recently\nobserved issues with resource leaks and observable inconsistent state.\n\nTaking advantage of previous patches in this series we move a number of\nchecks earlier in the code, simplifying things by moving the core of the\nlogic into a static internal function __mmap_region().\n\nDoing this allows us to perform a number of checks up front before we do\nany real work, and allows us to unwind the writable unmap check\nunconditionally as required and to perform a CONFIG_DEBUG_VM_MAPLE_TREE\nvalidation unconditionally also.\n\nWe move a number of things here:\n\n1. We preallocate memory for the iterator before we call the file-backed\n memory hook, allowing us to exit early and avoid having to perform\n complicated and error-prone close/free logic. We carefully free\n iterator state on both success and error paths.\n\n2. The enclosing mmap_region() function handles the mapping_map_writable()\n logic early. Previously the logic had the mapping_map_writable() at the\n point of mapping a newly allocated file-backed VMA, and a matching\n mapping_unmap_writable() on success and error paths.\n\n We now do this unconditionally if this is a file-backed, shared writable\n mapping. If a driver changes the flags to eliminate VM_MAYWRITE, however\n doing so does not invalidate the seal check we just performed, and we in\n any case always decrement the counter in the wrapper.\n\n We perform a debug assert to ensure a driver does not attempt to do the\n opposite.\n\n3. We also move arch_validate_flags() up into the mmap_region()\n function. This is only relevant on arm64 and sparc64, and the check is\n only meaningful for SPARC with ADI enabled. We explicitly add a warning\n for this arch if a driver invalidates this check, though the code ought\n eventually to be fixed to eliminate the need for this.\n\nWith all of these measures in place, we no longer need to explicitly close\nthe VMA on error paths, as we place all checks which might fail prior to a\ncall to any driver mmap hook.\n\nThis eliminates an entire class of errors, makes the code easier to reason\nabout and more robust."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
2024-11-19 18:00:35 +00:00
}
]
2024-11-25 22:00:37 +00:00
},
"affects": {
"vendor": {
"vendor_data": [
{
"vendor_name": "Linux",
"product": {
"product_data": [
{
"product_name": "Linux",
"version": {
"version_data": [
2024-12-14 21:00:54 +00:00
{
"version_affected": "<",
"version_name": "a3c08c021778",
"version_value": "43323a4e5b3f"
},
{
"version_affected": "<",
"version_name": "43bed0a13a5c",
"version_value": "44f48eb9a605"
},
2024-11-25 22:00:37 +00:00
{
"version_affected": "<",
"version_name": "deb0f6562884",
2024-12-02 08:01:05 +00:00
"version_value": "52c81fd0f5a8"
2024-11-25 22:00:37 +00:00
},
{
"version_value": "not down converted",
"x_cve_json_5_version_data": {
"versions": [
{
"version": "6.1",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.1",
"status": "unaffected",
"versionType": "semver"
},
2024-12-14 21:00:54 +00:00
{
"version": "5.10.231",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.15.174",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "semver"
},
2024-12-02 08:01:05 +00:00
{
"version": "6.1.119",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.63",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
2024-11-25 22:00:37 +00:00
{
"version": "6.12",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
],
"defaultStatus": "affected"
}
}
]
}
}
]
}
}
]
}
},
"references": {
"reference_data": [
2024-12-14 21:00:54 +00:00
{
"url": "https://git.kernel.org/stable/c/43323a4e5b3f8ccc08e2f835abfdc7ee9da8f6ed",
"refsource": "MISC",
"name": "https://git.kernel.org/stable/c/43323a4e5b3f8ccc08e2f835abfdc7ee9da8f6ed"
},
{
"url": "https://git.kernel.org/stable/c/44f48eb9a6051826227bbd375446064fb2a43c6c",
"refsource": "MISC",
"name": "https://git.kernel.org/stable/c/44f48eb9a6051826227bbd375446064fb2a43c6c"
},
2024-12-02 08:01:05 +00:00
{
"url": "https://git.kernel.org/stable/c/52c81fd0f5a8bf8032687b94ccf00d13b44cc5c8",
"refsource": "MISC",
"name": "https://git.kernel.org/stable/c/52c81fd0f5a8bf8032687b94ccf00d13b44cc5c8"
},
{
"url": "https://git.kernel.org/stable/c/bdc136e2b05fabcd780fe5f165d154eb779dfcb0",
"refsource": "MISC",
"name": "https://git.kernel.org/stable/c/bdc136e2b05fabcd780fe5f165d154eb779dfcb0"
},
2024-11-25 22:00:37 +00:00
{
"url": "https://git.kernel.org/stable/c/5de195060b2e251a835f622759550e6202167641",
"refsource": "MISC",
"name": "https://git.kernel.org/stable/c/5de195060b2e251a835f622759550e6202167641"
2024-12-18 07:00:53 +00:00
},
{
"url": "https://project-zero.issues.chromium.org/issues/374117290",
"refsource": "MISC",
"name": "https://project-zero.issues.chromium.org/issues/374117290"
2024-11-25 22:00:37 +00:00
}
]
},
"generator": {
"engine": "bippy-8e903de6a542"
2024-11-19 18:00:35 +00:00
}
}