Description
In the Linux kernel, the following vulnerability has been resolved: tipc: reject attaching bearer of different media to the same occupied device Currently, two bearers of different media types can be added to the same device (e.g., "eth:eth0" and "ib:eth0") via tipc command: tipc bearer enable media eth dev eth0 tipc bearer enable media ib dev eth0 For each command execution, tipc_enable_l2_media() is called: tipc_enable_l2_media() dev_get_by_name() dev_hold() As a result, device->dev_refcnt is incremented twice, but the second bearer replaces the first one. This causes a leak in device->dev_refcnt. Fix this by rejecting a bearer with a different media type when the device is already occupied.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
cb30a63384bc91d5da06e1cede1115f666a29271 to < 0acaa3d99995e460f2ef9a1594130246ed19a2cdaffectedcb30a63384bc91d5da06e1cede1115f666a29271 to < b5c5005890ec8210f53c930956cf7cb52264d015affectedcb30a63384bc91d5da06e1cede1115f666a29271 to < d551b2ddeca2659f6af4e58fb1af59c8d9916b90affectedcb30a63384bc91d5da06e1cede1115f666a29271 to < 3119e2ba4a2ad756acef14110031c9fc89726a0caffectedcb30a63384bc91d5da06e1cede1115f666a29271 to < 8487516030fdd039eba0d8b5401bcf3bb036e8d7affectedcb30a63384bc91d5da06e1cede1115f666a29271 to < 0a0257228be902ff09608bcaf19ae7c6d58b028faffected
Linux Linux
Default version status: affected
4.17affected0 to < 4.17unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/0acaa3d99995e460f2ef9a1594130246ed19a2cd ↗
- https://git.kernel.org/stable/c/b5c5005890ec8210f53c930956cf7cb52264d015 ↗
- https://git.kernel.org/stable/c/d551b2ddeca2659f6af4e58fb1af59c8d9916b90 ↗
- https://git.kernel.org/stable/c/3119e2ba4a2ad756acef14110031c9fc89726a0c ↗
- https://git.kernel.org/stable/c/8487516030fdd039eba0d8b5401bcf3bb036e8d7 ↗
- https://git.kernel.org/stable/c/0a0257228be902ff09608bcaf19ae7c6d58b028f ↗