CVE-2022-48740

Severity CVSS v4.0:
Pending analysis
Type:
CWE-415 Double Free
Publication date:
20/06/2024
Last modified:
27/05/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> selinux: fix double free of cond_list on error paths<br /> <br /> On error path from cond_read_list() and duplicate_policydb_cond_list()<br /> the cond_list_destroy() gets called a second time in caller functions,<br /> resulting in NULL pointer deref. Fix this by resetting the<br /> cond_list_len to 0 in cond_list_destroy(), making subsequent calls a<br /> noop.<br /> <br /> Also consistently reset the cond_list pointer to NULL after freeing.<br /> <br /> [PM: fix line lengths in the description]

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.7 (including) 5.10.99 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.22 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 5.16.8 (excluding)
cpe:2.3:o:linux:linux_kernel:5.17:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.17:rc2:*:*:*:*:*:*