{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-48740","id":"CVE-2022-48740","title":"selinux: fix double free of cond_list on error paths","description":"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","descriptionLong":"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]","published":"2024-06-20T11:13:25.346Z","updated":"2026-10-28T02:30:27.133770188Z","reserved":"2024-06-20T11:09:39.054Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"60abd3181db29ea81742106cc0ac2e27fd05b418","lessThan":"f446089a268c8fc6908488e991d28a9b936293db","status":"affected","versionType":"git"},{"version":"60abd3181db29ea81742106cc0ac2e27fd05b418","lessThan":"70caa32e6d81f45f0702070c0e4dfe945e92fbd7","status":"affected","versionType":"git"},{"version":"60abd3181db29ea81742106cc0ac2e27fd05b418","lessThan":"7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4","status":"affected","versionType":"git"},{"version":"60abd3181db29ea81742106cc0ac2e27fd05b418","lessThan":"186edf7e368c40d06cf727a1ad14698ea67b74ad","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"5.10.99","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.22","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.8","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f446089a268c8fc6908488e991d28a9b936293db","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/70caa32e6d81f45f0702070c0e4dfe945e92fbd7","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/7ed9cbf7ac0d4ed86b356e1b944304ae9ee450d4","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/186edf7e368c40d06cf727a1ad14698ea67b74ad","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48740.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48740","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00245,"epssPercentile":0.15831,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-48740","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48740","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-48740","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-48740","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}