net: ixp4xx_hss: fix duplicate HDLC netdev allocation
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3f85fcd520aa703824b1958f35169925ddae2558, Kernel 77d925b948ee594a79afe66f85bb94b67940140b, Kernel 8f4c3c384092becbf4835a3f8ed8a3df1f544578 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: net: ixp4xx_hss: fix duplicate HDLC netdev allocation ixp4xx_hss_probe() allocates two HDLC netdevs. The first one is stored in ndev, initialized, and registered with register_hdlc_device(). The second one is stored in port->netdev and later used by the remove path for unregister_hdlc_device() and free_netdev(). This means that the registered netdev is not the same object that is unregistered and freed on remove. It also leaks the first allocation if the second alloc_hdlcdev() call fails, and the first allocation is not checked before ndev is used. Older code allocated the HDLC netdev only once and stored the same object in both the local variable and port->netdev. The buggy conversion split this into two alloc_hdlcdev() calls. A later rename changed the local variable name to ndev, but the underlying mismatch remained. Fix this by allocating the HDLC netdev only once and assigning the same object to port->netdev.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.14, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <3f85fcd520aa703824b1958f35169925ddae2558, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <77d925b948ee594a79afe66f85bb94b67940140b, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <8f4c3c384092becbf4835a3f8ed8a3df1f544578, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <91850f582783098415a334f8bd0a84c87ff15a8c, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <db818b0e8af7bac16860116a19c341a63d6677b4, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <fd0b939ebd1eee29945a539c5ed65c35dddac8d6, >=99ebe65eb9c0ada015931d239d9f2d1dc8897fee <ffba16e6f55948d94b7f16aa113d587c1c4c0643 | 3f85fcd520aa703824b1958f35169925ddae2558, 77d925b948ee594a79afe66f85bb94b67940140b, 8f4c3c384092becbf4835a3f8ed8a3df1f544578, 91850f582783098415a334f8bd0a84c87ff15a8c, db818b0e8af7bac16860116a19c341a63d6677b4, fd0b939ebd1eee29945a539c5ed65c35dddac8d6, ffba16e6f55948d94b7f16aa113d587c1c4c0643 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket