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]
History

Mon, 19 Aug 2024 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-06-20T11:13:25.346Z

Updated: 2024-08-03T15:25:01.573Z

Reserved: 2024-06-20T11:09:39.054Z

Link: CVE-2022-48740

cve-icon Vulnrichment

Updated: 2024-08-03T15:25:01.573Z

cve-icon NVD

Status : Analyzed

Published: 2024-06-20T12:15:12.330

Modified: 2024-08-19T17:03:31.843

Link: CVE-2022-48740

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-06-20T00:00:00Z

Links: CVE-2022-48740 - Bugzilla