Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: put MAC endpoint device on disconnect fsl_mc_get_endpoint() returns the MAC endpoint device with a reference taken through device_find_child(). The switch port connect path stores that device in mac->mc_dev and keeps it for the lifetime of the connected MAC object. However, the disconnect path only closes the MAC and frees the dpaa2_mac object. It does not drop the endpoint device reference stored in mac->mc_dev, so every successful connect leaks that device reference when the MAC is later disconnected. Drop the endpoint device reference before freeing the dpaa2_mac object.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 84cba72956fddf29ba666f885c39ed147024c125 before 196f7301537814bef0f5915f87cd73d6d1235c19; affected 84cba72956fddf29ba666f885c39ed147024c125 before 0e9a6811eb6198ab17538cd01fa155d133b238ed; affected 84cba72956fddf29ba666f885c39ed147024c125 before 1f4ca61b7a93de3dfa5161bcd38ecb99bb091c38; affected 84cba72956fddf29ba666f885c39ed147024c125 before 680eecc850d36a280df9780496bc603fec17b2d6; affected 84cba72956fddf29ba666f885c39ed147024c125 before 26ac2d3602347f0377fbcd5214bc28a9d735ae68; affected 84cba72956fddf29ba666f885c39ed147024c125 before c27694ff6748e08fcd2fdba89018439d75b8198f; affected 84cba72956fddf29ba666f885c39ed147024c125 before 4c1eabbef7a1707635652e956e39db1269c3af2b |
| Linux / Linux | affected 5.15; unaffected 0 before 5.15; unaffected 5.15.216 through 5.15.*; unaffected 6.1.183 through 6.1.*; unaffected 6.6.148 through 6.6.*; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.6 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/196f7301537814bef0f5915f87cd73d6d1235c19
- https://git.kernel.org/stable/c/0e9a6811eb6198ab17538cd01fa155d133b238ed
- https://git.kernel.org/stable/c/1f4ca61b7a93de3dfa5161bcd38ecb99bb091c38
- https://git.kernel.org/stable/c/680eecc850d36a280df9780496bc603fec17b2d6
- https://git.kernel.org/stable/c/26ac2d3602347f0377fbcd5214bc28a9d735ae68
- https://git.kernel.org/stable/c/c27694ff6748e08fcd2fdba89018439d75b8198f
- https://git.kernel.org/stable/c/4c1eabbef7a1707635652e956e39db1269c3af2b