{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50077","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-06-18T10:57:27.408Z","datePublished":"2025-06-18T11:02:20.318Z","dateUpdated":"2026-05-11T19:12:25.193Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:12:25.193Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/mount.c"],"versions":[{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"d53194707d2a1851be027cd74266b96ceff799d3","status":"affected","versionType":"git"},{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"f4d5c7796571624e3f380b447ada52834270a287","status":"affected","versionType":"git"},{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"ef6fb6f0d0d8440595b45a7e53c6162c737177f4","status":"affected","versionType":"git"},{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"2ceeb3296e9dde1d5772348046affcefdea605e2","status":"affected","versionType":"git"},{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"64103ea357734b82384c925cba4758fdb909be0c","status":"affected","versionType":"git"},{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"3ca40ad7afae144169a43988ef1a3f16182faf0a","status":"affected","versionType":"git"},{"version":"2ea3ffb7782a84da33a8382f13ebd016da50079b","lessThan":"11c3627ec6b56c1525013f336f41b79a983b4d46","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/mount.c"],"versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"4.14.291","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.256","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.211","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.138","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.63","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.4","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"4.14.291"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"4.19.256"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.4.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.10.138"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.15.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3"},{"url":"https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287"},{"url":"https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4"},{"url":"https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2"},{"url":"https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c"},{"url":"https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a"},{"url":"https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46"}],"title":"apparmor: fix reference count leak in aa_pivotroot()","x_generator":{"engine":"bippy-1.2.0"}}}}