5.5medium
bnge: return after auxiliary_device_uninit() in error path
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: bnge: return after auxiliary_device_uninit() in error path When auxiliary_device_add() fails, the error block calls auxiliary_device_uninit() but does not return. The uninit drops the last reference and synchronously runs bnge_aux_dev_release(), which sets bd->auxr_dev = NULL and frees the underlying object. The subsequent bd->auxr_dev->net = bd->netdev then dereferences NULL, which is not a good thing to have happen when trying to clean up from an error. Add the missing return, as the auxiliary bus documentation states is a requirement (seems that LLM tools read documentation better than humans do...)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8ac050ec3b1c0dcb5e89cf86fe2ebe0afcc73554 before 38c383ec6d37f4b5597f8e6a1f5c2ab31ea01d3a, from 8ac050ec3b1c0dcb5e89cf86fe2ebe0afcc73554 before 87bc3557c708110d83086bf091328271298a44e3, from 8ac050ec3b1c0dcb5e89cf86fe2ebe0afcc73554 before 8b0c25528cb64f71a73b5c0d49cbbcb68540a4ce, 6.19 Not affected: before 6.19, from 6.19.14 up to 6.19.*, from 7.0.1 up to 7.0.*, from 7.1 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.14, from 7.0 before 7.0.1 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: bnge: return after auxiliary_device_uninit() in error path When auxiliary_device_add() fails, the error block calls auxiliary_device_uninit() but does not return. The uninit drops the last reference and synchronously runs bnge_aux_dev_release(), which sets bd->auxr_dev = NULL and frees the underlying object. The subsequent bd->auxr_dev->net = bd->netdev then dereferences NULL, which is not a good thing to have happen when trying to clean up from an error. Add the missing return, as the auxiliary bus documentation states is a requirement (seems that LLM tools read documentation better than humans do...)
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: bnge: retornar después de auxiliary_device_uninit() en la ruta de error Cuando auxiliary_device_add() falla, el bloque de error llama a auxiliary_device_uninit() pero no retorna. La desinicialización libera la última referencia y ejecuta sincrónicamente bnge_aux_dev_release(), lo que establece bd -> auxr_dev = NULL y libera el objeto subyacente. La subsiguiente operación bd -> auxr_dev -> net = bd -> netdev entonces desreferencia NULL, lo cual no es algo bueno que ocurra al intentar limpiar un error. Añadir el retorno faltante, ya que la documentación del bus auxiliar establece que es un requisito (parece que las herramientas LLM leen la documentación mejor que los humanos...).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31621 changed 2026-06-14 | CVE Terms of Use |
| NVD | CVE-2026-31621 changed 2026-11-11 | Public domain |