{"id":"CVE-2025-22016","state":"PUBLISHED","title":"dpll: fix xa_alloc_cyclic() error handling","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndpll: fix xa_alloc_cyclic() error handling\n\nIn case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will\nbe returned, which will cause IS_ERR() to be false. Which can lead to\ndereference not allocated pointer (pin).\n\nFix it by checking if err is lower than zero.\n\nThis wasn't found in real usecase, only noticed. Credit to Pierre.","publishedAt":"2025-04-08T08:18:05.907Z","updatedAt":"2026-05-11T21:11:01.337Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"97f265ef7f5b526b33d6030b2a1fc69a2259bf4a","status":"affected","lessThan":"cb2f8a5c1fd9e7a1fefa23afe20570e16da1ada4","versionType":"git"},{"version":"97f265ef7f5b526b33d6030b2a1fc69a2259bf4a","status":"affected","lessThan":"4d350043be684762e581d9bdd32d543621d01a9c","versionType":"git"},{"version":"97f265ef7f5b526b33d6030b2a1fc69a2259bf4a","status":"affected","lessThan":"3614bf90130d60f191a5fe218d04f6251c678e13","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dpll/dpll_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.21","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.9","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dpll/dpll_core.c"]}],"references":["https://git.kernel.org/stable/c/cb2f8a5c1fd9e7a1fefa23afe20570e16da1ada4","https://git.kernel.org/stable/c/4d350043be684762e581d9bdd32d543621d01a9c","https://git.kernel.org/stable/c/3614bf90130d60f191a5fe218d04f6251c678e13"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22016.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22016","state":"PUBLISHED","datePublished":"2025-04-08T08:18:05.907Z","dateUpdated":"2026-05-11T21:11:01.337Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.806Z"},"containers":{"cna":{"title":"dpll: fix xa_alloc_cyclic() error handling","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndpll: fix xa_alloc_cyclic() error handling\n\nIn case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will\nbe returned, which will cause IS_ERR() to be false. Which can lead to\ndereference not allocated pointer (pin).\n\nFix it by checking if err is lower than zero.\n\nThis wasn't found in real usecase, only noticed. Credit to Pierre."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"97f265ef7f5b526b33d6030b2a1fc69a2259bf4a","status":"affected","lessThan":"cb2f8a5c1fd9e7a1fefa23afe20570e16da1ada4","versionType":"git"},{"version":"97f265ef7f5b526b33d6030b2a1fc69a2259bf4a","status":"affected","lessThan":"4d350043be684762e581d9bdd32d543621d01a9c","versionType":"git"},{"version":"97f265ef7f5b526b33d6030b2a1fc69a2259bf4a","status":"affected","lessThan":"3614bf90130d60f191a5fe218d04f6251c678e13","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dpll/dpll_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.21","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.9","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dpll/dpll_core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cb2f8a5c1fd9e7a1fefa23afe20570e16da1ada4"},{"url":"https://git.kernel.org/stable/c/4d350043be684762e581d9bdd32d543621d01a9c"},{"url":"https://git.kernel.org/stable/c/3614bf90130d60f191a5fe218d04f6251c678e13"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:11:01.337Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.13.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}