Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: batman-adv: clean untagged VLAN on netdev registration failure When an mesh interface is registered, it creates an untagged struct batadv_meshif_vlan on top of it via the NETDEV_REGISTER notifier. But in this process, another receiver of this notification can veto the registration. The netdev registration will be aborted because of this veto. The register_netdevice() call will try to clean up the net_device using unregister_netdevice_queue() - which only uses the .priv_destructor to free private resources. In this situation, .dellink will not be called. The cleanup of the untagged batadv_meshif_vlan must thefore be done in the destructor to avoid a leak of this object.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before 86e32dfb6a6fe29898f4a562b7b6e38e480bba4d; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before 06ae245168268b705a204f93c318b30107d10e92; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before dbca15fcbeed5276af440a53aed3901590fa7fc9; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before f2423da55976ea249f73029e468aefda4b94acba; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before f15ca6250591cfe78408114a54eaa8d58da51bfa; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before c945f6007e7851e74706c72f98763023699bcd97; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before 5a82c558098889cc8bfff85cc62f563833205d91; affected 5d2c05b213377694a2aa8ce1ed9b23f7c39b0569 before 8669a550c752d86baebc5fdc83b8ff35c4372c0e |
| Linux / Linux | affected 3.13; unaffected 0 before 3.13; unaffected 5.10.261 through 5.10.*; unaffected 5.15.212 through 5.15.*; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/86e32dfb6a6fe29898f4a562b7b6e38e480bba4d
- https://git.kernel.org/stable/c/06ae245168268b705a204f93c318b30107d10e92
- https://git.kernel.org/stable/c/dbca15fcbeed5276af440a53aed3901590fa7fc9
- https://git.kernel.org/stable/c/f2423da55976ea249f73029e468aefda4b94acba
- https://git.kernel.org/stable/c/f15ca6250591cfe78408114a54eaa8d58da51bfa
- https://git.kernel.org/stable/c/c945f6007e7851e74706c72f98763023699bcd97
- https://git.kernel.org/stable/c/5a82c558098889cc8bfff85cc62f563833205d91
- https://git.kernel.org/stable/c/8669a550c752d86baebc5fdc83b8ff35c4372c0e