{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22017","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-12-29T08:45:45.806Z","datePublished":"2025-04-08T08:18:06.575Z","dateUpdated":"2026-05-11T21:11:02.888Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T21:11:02.888Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndevlink: 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 (rel).\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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/devlink/core.c"],"versions":[{"version":"c137743bce02b18c1537d4681aa515f7b80bf0a8","lessThan":"f8aaa38cfaf6f20afa4db36b6529032fb69165dc","status":"affected","versionType":"git"},{"version":"c137743bce02b18c1537d4681aa515f7b80bf0a8","lessThan":"466132f6d28a7e47a82501fe1c46b8f90487412e","status":"affected","versionType":"git"},{"version":"c137743bce02b18c1537d4681aa515f7b80bf0a8","lessThan":"f3b97b7d4bf316c3991e5634c9f4847c2df35478","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/devlink/core.c"],"versions":[{"version":"6.7","status":"affected"},{"version":"0","lessThan":"6.7","status":"unaffected","versionType":"semver"},{"version":"6.12.21","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13.9","lessThanOrEqual":"6.13.*","status":"unaffected","versionType":"semver"},{"version":"6.14","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":"6.7","versionEndExcluding":"6.12.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.13.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.14"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/f8aaa38cfaf6f20afa4db36b6529032fb69165dc"},{"url":"https://git.kernel.org/stable/c/466132f6d28a7e47a82501fe1c46b8f90487412e"},{"url":"https://git.kernel.org/stable/c/f3b97b7d4bf316c3991e5634c9f4847c2df35478"}],"title":"devlink: fix xa_alloc_cyclic() error handling","x_generator":{"engine":"bippy-1.2.0"}}}}