{"id":"CVE-2023-53501","summary":"iommu/amd/iommu_v2: Fix pasid_state refcount dec hit 0 warning on pasid unbind","details":"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.","modified":"2026-04-02T09:44:23.153172Z","published":"2025-10-01T11:45:52.204Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4141-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53501.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/13ed255248dfbbb7f23f9170c7a537fb9ca22c73"},{"type":"WEB","url":"https://git.kernel.org/stable/c/534103bcd52ca9c1fecbc70e717b4a538dc4ded8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98d86bf32187db27946ca817c2467a5f2f7aa02f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ccc51be3126b25cfe9351dbffde946c925cc28a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a50d60b8f2aff46dd7c7edb4a5835cdc4d432c22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53501.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53501"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8bc54824da4e8fcf0ed679cf09ac32f23d83254a"},{"fixed":"a50d60b8f2aff46dd7c7edb4a5835cdc4d432c22"},{"fixed":"13ed255248dfbbb7f23f9170c7a537fb9ca22c73"},{"fixed":"9ccc51be3126b25cfe9351dbffde946c925cc28a"},{"fixed":"98d86bf32187db27946ca817c2467a5f2f7aa02f"},{"fixed":"534103bcd52ca9c1fecbc70e717b4a538dc4ded8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53501.json"}}],"schema_version":"1.7.5"}