{"id":"CVE-2025-22017","summary":"devlink: fix xa_alloc_cyclic() error handling","details":"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.","modified":"2026-03-20T12:41:17.149238Z","published":"2025-04-08T08:18:06.575Z","related":["SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22017.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/466132f6d28a7e47a82501fe1c46b8f90487412e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3b97b7d4bf316c3991e5634c9f4847c2df35478"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f8aaa38cfaf6f20afa4db36b6529032fb69165dc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22017.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22017"},{"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":"c137743bce02b18c1537d4681aa515f7b80bf0a8"},{"fixed":"f8aaa38cfaf6f20afa4db36b6529032fb69165dc"},{"fixed":"466132f6d28a7e47a82501fe1c46b8f90487412e"},{"fixed":"f3b97b7d4bf316c3991e5634c9f4847c2df35478"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22017.json"}}],"schema_version":"1.7.5"}