Linux
net: sxgbe: fix potential NULL dereference in sxgbe_rx()
In the Linux kernel, the following vulnerability has been resolved: net: sxgbe: fix potential NULL dereference in sxgbe_rx() Currently, when skb is null, the driver prints an error and then dereferences skb on the next line. To fix this, let's add a 'break' after the error message to switch to sxgbe_rx_refill(), which is similar to the approach taken by the other drivers in this particular case, e.g. calxeda with xgmac_rx(). Found during a code review.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < ac171c3c755499c9f87fe30b920602255f8b5648
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < 18ef3ad1bb57dcf1a9ee61736039aedccf670b21
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < 46e5332126596a2ca791140feab18ce1fc1a3c86
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < 7fd789d6ea4915034eb6bcb72f6883c8151083e5
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < 45b5b4ddb8d6bea5fc1625ff6f163bbb125d49cc
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < 88f46c0be77bfe45830ac33102c75be7c34ac3f3
- >= 1edb9ca69e8a7988900fc0283e10550b5592164d, < f5bce28f6b9125502abec4a67d68eabcd24b3b17
Fixed in ac171c3c755499c9f87fe30b920602255f8b5648, 18ef3ad1bb57dcf1a9ee61736039aedccf670b21, 46e5332126596a2ca791140feab18ce1fc1a3c86, 7fd789d6ea4915034eb6bcb72f6883c8151083e5, 45b5b4ddb8d6bea5fc1625ff6f163bbb125d49cc, 88f46c0be77bfe45830ac33102c75be7c34ac3f3, f5bce28f6b9125502abec4a67d68eabcd24b3b17
- 3.15
Fixed in 0, 5.10.247, 5.15.197, 6.1.159, 6.6.119, 6.12.61, 6.17.11, 6.18
Mitigation
Upgrade Linux to ac171c3c755499c9f87fe30b920602255f8b5648 or 18ef3ad1bb57dcf1a9ee61736039aedccf670b21 or 46e5332126596a2ca791140feab18ce1fc1a3c86 or 7fd789d6ea4915034eb6bcb72f6883c8151083e5 or 45b5b4ddb8d6bea5fc1625ff6f163bbb125d49cc or 88f46c0be77bfe45830ac33102c75be7c34ac3f3 or f5bce28f6b9125502abec4a67d68eabcd24b3b17 or later.
Upgrade Linux to 0 or 5.10.247 or 5.15.197 or 6.1.159 or 6.6.119 or 6.12.61 or 6.17.11 or 6.18 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.