CVE-2022-48740
Linux Selinux Null Pointer Dereference
Description
In the Linux kernel, the following vulnerability has been resolved: selinux: fix double free of cond_list on error paths On error path from cond_read_list() and duplicate_policydb_cond_list() the cond_list_destroy() gets called a second time in caller functions, resulting in NULL pointer deref. Fix this by resetting the cond_list_len to 0 in cond_list_destroy(), making subsequent calls a noop. Also consistently reset the cond_list pointer to NULL after freeing. [PM: fix line lengths in the description]
INFO
Published Date :
June 20, 2024, 12:15 p.m.
Last Modified :
Nov. 21, 2024, 7:33 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-48740
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-48740
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-48740
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad Added Reference https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7 Added Reference https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4 Added Reference https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db -
Initial Analysis by [email protected]
Aug. 19, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad No Types Assigned https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad Patch Changed Reference Type https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7 No Types Assigned https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7 Patch Changed Reference Type https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4 No Types Assigned https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4 Patch Changed Reference Type https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db No Types Assigned https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db Patch Added CWE NIST CWE-415 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.10.99 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.22 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 5.16.8 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 20, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: selinux: fix double free of cond_list on error paths On error path from cond_read_list() and duplicate_policydb_cond_list() the cond_list_destroy() gets called a second time in caller functions, resulting in NULL pointer deref. Fix this by resetting the cond_list_len to 0 in cond_list_destroy(), making subsequent calls a noop. Also consistently reset the cond_list pointer to NULL after freeing. [PM: fix line lengths in the description] Added Reference kernel.org https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-48740
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-48740
weaknesses.