Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: dpaa2-eth: put MAC endpoint device on disconnect fsl_mc_get_endpoint() returns the MAC endpoint device with a reference taken through device_find_child(). The Ethernet 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 disconnects and closes the MAC before freeing 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 after closing the MAC and before freeing the dpaa2_mac object.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 71947923089353f23f4f210864903c4dcf2c1696 before 6b6ffdb9ca4547a3c4c274aa3e25b6c68dbc62e1; affected 71947923089353f23f4f210864903c4dcf2c1696 before 1974127776da46a000c61f36d4946799ea6d4f51; affected 71947923089353f23f4f210864903c4dcf2c1696 before 915012e923316b8b5d5bf8fc771617b47bd7572d; affected 71947923089353f23f4f210864903c4dcf2c1696 before e23e4a3b9dfd893469c731318d409cdf04fb1ddf; affected 71947923089353f23f4f210864903c4dcf2c1696 before f112df0744e2d77baa68eeebb860021bbaaa022a; affected 71947923089353f23f4f210864903c4dcf2c1696 before a3cecf169cc652b558d08661bb6ce55e4c933ec0; affected 71947923089353f23f4f210864903c4dcf2c1696 before b4b201cc93ff70150853aba03e14d314d1980ca0 |
| Linux / Linux | affected 5.5; unaffected 0 before 5.5; 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/6b6ffdb9ca4547a3c4c274aa3e25b6c68dbc62e1
- https://git.kernel.org/stable/c/1974127776da46a000c61f36d4946799ea6d4f51
- https://git.kernel.org/stable/c/915012e923316b8b5d5bf8fc771617b47bd7572d
- https://git.kernel.org/stable/c/e23e4a3b9dfd893469c731318d409cdf04fb1ddf
- https://git.kernel.org/stable/c/f112df0744e2d77baa68eeebb860021bbaaa022a
- https://git.kernel.org/stable/c/a3cecf169cc652b558d08661bb6ce55e4c933ec0
- https://git.kernel.org/stable/c/b4b201cc93ff70150853aba03e14d314d1980ca0