{"id":"CVE-2023-53501","published":"2025-10-01T11:45:52Z","modified":"2026-05-11T19:46:13Z","title":"iommu/amd/iommu_v2: Fix pasid_state refcount dec hit 0 warning on pasid unbind","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0015,"percentile":0.0411,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a50d60b8f2aff46dd7c7edb4a5835cdc4d432c22","tags":[]},{"url":"https://git.kernel.org/stable/c/13ed255248dfbbb7f23f9170c7a537fb9ca22c73","tags":[]},{"url":"https://git.kernel.org/stable/c/9ccc51be3126b25cfe9351dbffde946c925cc28a","tags":[]},{"url":"https://git.kernel.org/stable/c/98d86bf32187db27946ca817c2467a5f2f7aa02f","tags":[]},{"url":"https://git.kernel.org/stable/c/534103bcd52ca9c1fecbc70e717b4a538dc4ded8","tags":[]}],"priority":{"score":0.8,"factors":[{"name":"EPSS percentile","points":0.82}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8bc54824da4e8fcf0ed679cf09ac32f23d83254a, < a50d60b8f2aff46dd7c7edb4a5835cdc4d432c22",">= 8bc54824da4e8fcf0ed679cf09ac32f23d83254a, < 13ed255248dfbbb7f23f9170c7a537fb9ca22c73",">= 8bc54824da4e8fcf0ed679cf09ac32f23d83254a, < 9ccc51be3126b25cfe9351dbffde946c925cc28a",">= 8bc54824da4e8fcf0ed679cf09ac32f23d83254a, < 98d86bf32187db27946ca817c2467a5f2f7aa02f",">= 8bc54824da4e8fcf0ed679cf09ac32f23d83254a, < 534103bcd52ca9c1fecbc70e717b4a538dc4ded8"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2025-32777","exploited":false,"provenance":"source"}}