{"id":"CVE-2022-48740","published":"2024-06-20T11:13:25Z","modified":"2026-05-11T18:46:00Z","title":"selinux: fix double free of cond_list on error paths","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nselinux: fix double free of cond_list on error paths\n\nOn error path from cond_read_list() and duplicate_policydb_cond_list()\nthe cond_list_destroy() gets called a second time in caller functions,\nresulting in NULL pointer deref.  Fix this by resetting the\ncond_list_len to 0 in cond_list_destroy(), making subsequent calls a\nnoop.\n\nAlso consistently reset the cond_list pointer to NULL after freeing.\n\n[PM: fix line lengths in the description]","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00245,"percentile":0.16,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db","tags":[]},{"url":"https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7","tags":[]},{"url":"https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4","tags":[]},{"url":"https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad","tags":[]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.2}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 60abd3181db29ea81742106cc0ac2e27fd05b418, < f446089a268c8fc6908488e991d28a9b936293db",">= 60abd3181db29ea81742106cc0ac2e27fd05b418, < 70caa32e6d81f45f0702070c0e4dfe945e92fbd7",">= 60abd3181db29ea81742106cc0ac2e27fd05b418, < 7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4",">= 60abd3181db29ea81742106cc0ac2e27fd05b418, < 186edf7e368c40d06cf727a1ad14698ea67b74ad"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-20T16:02:52.249178Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53619","exploited":false,"provenance":"source"}}