A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
In the Linux kernel, the following vulnerability has been resolved:
gpio: exar: initialize the ID before registering its cleanup
devm_add_action_or_reset() invokes the cleanup action immediately when registering the action fails. gpio_exar_probe() currently stores the allocated ID in exar_gpio only after registering the action, so that failure makes exar_devm_ida_free() release ID 0. If the allocated ID is nonzero, this leaks that ID and can free ID 0 belonging to another device.
Store the ID before registering the cleanup action so both the immediate failure path and normal device teardown release the correct allocation.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
References
- git.kernel.org /stable/c/01318927a9055136c207399eeb36ce07becac179
- git.kernel.org /stable/c/0250acba81654b2ee50bde324ad72b3f0c04d0bd
- git.kernel.org /stable/c/4d69e74034b208588636ecc177e0dd43a7696af3
- git.kernel.org /stable/c/88b9c4bbf83d940ab672956e5af921215905dcb4
- git.kernel.org /stable/c/b78c114600ae3df90c083c72c290437b068577c8
- git.kernel.org /stable/c/bf3d841ef12fcbec4458e2750956b738b043a226
- git.kernel.org /stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning