# CVE-2022-48740: selinux: fix double free of cond_list on error paths

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:25.346Z
- Modified: 2026-06-17T05:16:03.760Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 60abd3181db29ea81742106cc0ac2e27fd05b418 before f446089a268c8fc6908488e991d28a9b936293db; from 60abd3181db29ea81742106cc0ac2e27fd05b418 before 70caa32e6d81f45f0702070c0e4dfe945e92fbd7; from 60abd3181db29ea81742106cc0ac2e27fd05b418 before 7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4; from 60abd3181db29ea81742106cc0ac2e27fd05b418 before 186edf7e368c40d06cf727a1ad14698ea67b74ad; 5.7 (not affected: before 5.7; from 5.10.99 up to 5.10.*; from 5.15.22 up to 5.15.*; from 5.16.8 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.7 before 5.10.99; from 5.11 before 5.15.22; from 5.16 before 5.16.8; 5.17

## References

- <https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db> (patch)
- <https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7> (patch)
- <https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4> (patch)
- <https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad> (patch)

## Sources

- CVE List: [CVE-2022-48740](https://www.cve.org/CVERecord?id=CVE-2022-48740), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48740](https://nvd.nist.gov/vuln/detail/CVE-2022-48740), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48740 · Whole record: https://cve.day/CVE-2022-48740.json · Rebuilt by cve.day 2026-11-25T22:58:19.844Z
