{"id":"CVE-2023-53501","aliases":["CVE-2023-53501"],"related":[],"kind":"vulnerability","state":"published","title":"iommu/amd/iommu_v2: Fix pasid_state refcount dec hit 0 warning on pasid unbind","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd/iommu_v2: Fix pasid_state refcount dec hit 0 warning on pasid unbind\n\nWhen unbinding pasid - a race condition exists vs outstanding page faults.\n\nTo prevent this, the pasid_state object contains a refcount.\n    * set to 1 on pasid bind\n    * incremented on each ppr notification start\n    * decremented on each ppr notification done\n    * decremented on pasid unbind\n\nSince refcount_dec assumes that refcount will never reach 0:\n  the current implementation causes the following to be invoked on\n  pasid unbind:\n        REFCOUNT_WARN(\"decrement hit 0; leaking memory\")\n\nFix this issue by changing refcount_dec to refcount_dec_and_test\nto explicitly handle refcount=1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd/iommu_v2: Fix pasid_state refcount dec hit 0 warning on pasid unbind\n\nWhen unbinding pasid - a race condition exists vs outstanding page faults.\n\nTo prevent this, the pasid_state object contains a refcount.\n    * set to 1 on pasid bind\n    * incremented on each ppr notification start\n    * decremented on each ppr notification done\n    * decremented on pasid unbind\n\nSince refcount_dec assumes that refcount will never reach 0:\n  the current implementation causes the following to be invoked on\n  pasid unbind:\n        REFCOUNT_WARN(\"decrement hit 0; leaking memory\")\n\nFix this issue by changing refcount_dec to refcount_dec_and_test\nto explicitly handle refcount=1.","source":"cvelist"}],"published":"2025-10-01T11:45:52.204Z","modified":"2026-06-17T06:45:29.020Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8bc54824da4e8fcf0ed679cf09ac32f23d83254a","fixed":"a50d60b8f2aff46dd7c7edb4a5835cdc4d432c22","status":"affected"},{"type":"git","introduced":"8bc54824da4e8fcf0ed679cf09ac32f23d83254a","fixed":"13ed255248dfbbb7f23f9170c7a537fb9ca22c73","status":"affected"},{"type":"git","introduced":"8bc54824da4e8fcf0ed679cf09ac32f23d83254a","fixed":"9ccc51be3126b25cfe9351dbffde946c925cc28a","status":"affected"},{"type":"git","introduced":"8bc54824da4e8fcf0ed679cf09ac32f23d83254a","fixed":"98d86bf32187db27946ca817c2467a5f2f7aa02f","status":"affected"},{"type":"git","introduced":"8bc54824da4e8fcf0ed679cf09ac32f23d83254a","fixed":"534103bcd52ca9c1fecbc70e717b4a538dc4ded8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.132","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.53","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.16","lastAffected":"6.4.*","status":"unaffected"},{"type":"semver","introduced":"6.5.3","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","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":"5.15","fixed":"5.15.132"},{"status":"affected","introduced":"5.16","fixed":"6.1.53"},{"status":"affected","introduced":"6.2","fixed":"6.4.16"},{"status":"affected","introduced":"6.5","fixed":"6.5.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a50d60b8f2aff46dd7c7edb4a5835cdc4d432c22","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13ed255248dfbbb7f23f9170c7a537fb9ca22c73","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ccc51be3126b25cfe9351dbffde946c925cc28a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98d86bf32187db27946ca817c2467a5f2f7aa02f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/534103bcd52ca9c1fecbc70e717b4a538dc4ded8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53501","url":"https://www.cve.org/CVERecord?id=CVE-2023-53501","licence":"CVE Terms of Use","modified":"2026-05-11T19:46:13.112Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53501","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53501","licence":"Public domain","modified":"2026-06-17T06:45:29.020Z"}],"updatedAt":"2026-11-25T22:58:34.913Z","epss":{"score":0.00156,"percentile":0.05001,"date":"2026-12-01T12:00:22.000Z"}}