net: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev
In the TX completion packet stage of TI SoCs with CPSW2G instance, which has single external ethernet port, ndev is accessed without being initialized if no TX packets have been processed. It results into null pointer dereference, causing kernel to crash. Fix this by having a check on the number of TX packets which have been processed.
From the CVE record · Linux
On TI SoCs with a CPSW2G instance and a single external Ethernet port, the Linux kernel TX completion path can dereference an uninitialized network device pointer when no TX packets have been processed, causing a kernel crash. The input does not establish how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux on TI SoCs with a CPSW2G instance and a single external Ethernet port should check their kernels; affected versions were not provided.