CVE-2022-48740

selinux: fix double free of cond_list on error paths

published June 20, 2024

CVSS
—
EPSS
0%
Percentile
14.8
In the wild
Unconfirmed
What it is

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]

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00245 · 14.8th percentile
Published
2024-06-20T11:13Z
EPSS history
Timeline
  • 20 JUN 11:13Z
    selinux: fix double free of cond_list on error paths
    cvelistv5