{"id":"CVE-2022-50077","aliases":["CVE-2022-50077"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: fix reference count leak in aa_pivotroot()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix reference count leak in aa_pivotroot()\n\nThe aa_pivotroot() function has a reference counting bug in a specific\npath. When aa_replace_current_label() returns on success, the function\nforgets to decrement the reference count of “target”, which is\nincreased earlier by build_pivotroot(), causing a reference leak.\n\nFix it by decreasing the refcount of “target” in that path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix reference count leak in aa_pivotroot()\n\nThe aa_pivotroot() function has a reference counting bug in a specific\npath. When aa_replace_current_label() returns on success, the function\nforgets to decrement the reference count of “target”, which is\nincreased earlier by build_pivotroot(), causing a reference leak.\n\nFix it by decreasing the refcount of “target” in that path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: apparmor: se corrige una fuga de referencias en aa_pivotroot(). La función aa_pivotroot() presenta un error de conteo de referencias en una ruta específica. Cuando aa_replace_current_label() retorna con éxito, la función olvida decrementar el conteo de referencias de \"target\", que se incrementa previamente mediante build_pivotroot(), lo que provoca una fuga de referencias. Para solucionarlo, reduzca el conteo de referencias de \"target\" en esa ruta.","source":"nvd"}],"published":"2025-06-18T11:02:20.318Z","modified":"2026-06-17T05:22:42.770Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"d53194707d2a1851be027cd74266b96ceff799d3","status":"affected"},{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"f4d5c7796571624e3f380b447ada52834270a287","status":"affected"},{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"ef6fb6f0d0d8440595b45a7e53c6162c737177f4","status":"affected"},{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"2ceeb3296e9dde1d5772348046affcefdea605e2","status":"affected"},{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"64103ea357734b82384c925cba4758fdb909be0c","status":"affected"},{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"3ca40ad7afae144169a43988ef1a3f16182faf0a","status":"affected"},{"type":"git","introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b","fixed":"11c3627ec6b56c1525013f336f41b79a983b4d46","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"4.14.291","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.256","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.211","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.138","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.63","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.4","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14.1","fixed":"4.14.291"},{"status":"affected","introduced":"4.15","fixed":"4.19.256"},{"status":"affected","introduced":"4.20","fixed":"5.4.211"},{"status":"affected","introduced":"5.5","fixed":"5.10.138"},{"status":"affected","introduced":"5.11","fixed":"5.15.63"},{"status":"affected","introduced":"5.16","fixed":"5.19.4"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50077","url":"https://www.cve.org/CVERecord?id=CVE-2022-50077","licence":"CVE Terms of Use","modified":"2026-05-11T19:12:25.193Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50077","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50077","licence":"Public domain","modified":"2026-06-17T05:22:42.770Z"}],"updatedAt":"2026-11-25T22:58:21.042Z","epss":{"score":0.00202,"percentile":0.10759,"date":"2026-12-01T12:00:22.000Z"}}