In the Linux kernel, the following vulnerability has been...
Unreviewed
Published
Apr 8, 2025
to the GitHub Advisory Database
•
Updated Apr 8, 2025
Description
Published by the National Vulnerability Database
Apr 8, 2025
Published to the GitHub Advisory Database
Apr 8, 2025
Last updated
Apr 8, 2025
In the Linux kernel, the following vulnerability has been resolved:
devlink: fix xa_alloc_cyclic() error handling
In case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will
be returned, which will cause IS_ERR() to be false. Which can lead to
dereference not allocated pointer (rel).
Fix it by checking if err is lower than zero.
This wasn't found in real usecase, only noticed. Credit to Pierre.
References