CVE-2023-53011

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53011
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53011.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53011
Related
Published
2025-03-27T17:15:50Z
Modified
2025-04-14T20:51:37Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

net: stmmac: enable all safety features by default

In the original implementation of dwmac5 commit 8bf993a5877e ("net: stmmac: Add support for DWMAC5 and implement Safety Features") all safety features were enabled by default.

Later it seems some implementations didn't have support for all the features, so in commit 5ac712dcdfef ("net: stmmac: enable platform specific safety features") the safetyfeatcfg structure was added to the callback and defined for some platforms to selectively enable these safety features.

The problem is that only certain platforms were given that software support. If the automotive safety package bit is set in the hardware features register the safety feature callback is called for the platform, and for platforms that didn't get a safetyfeatcfg defined this results in the following NULL pointer dereference:

[ 7.933303] Call trace: [ 7.935812] dwmac5safetyfeatconfig+0x20/0x170 [stmmac] [ 7.941455] stmmacopen+0x16c/0x474 [stmmac] [ 7.946117] stmmacopen+0x38/0x70 [stmmac] [ 7.950414] _devopen+0x100/0x1dc [ 7.954006] _devchangeflags+0x18c/0x204 [ 7.958297] devchangeflags+0x24/0x6c [ 7.962237] dosetlink+0x2b8/0xfa4 [ 7.965827] _rtnlnewlink+0x4ec/0x840 [ 7.969766] rtnlnewlink+0x50/0x80 [ 7.973353] rtnetlinkrcvmsg+0x12c/0x374 [ 7.977557] netlinkrcvskb+0x5c/0x130 [ 7.981500] rtnetlinkrcv+0x18/0x2c [ 7.985172] netlinkunicast+0x2e8/0x340 [ 7.989197] netlinksendmsg+0x1a8/0x420 [ 7.993222] _syssendmsg+0x218/0x280 [ 7.997249] _syssendmsg+0xac/0x100 [ 8.001103] _syssendmsg+0x84/0xe0 [ 8.004776] _arm64syssendmsg+0x24/0x30 [ 8.008983] invokesyscall+0x48/0x114 [ 8.012840] el0svccommon.constprop.0+0xcc/0xec [ 8.017665] doel0svc+0x38/0xb0 [ 8.021071] el0svc+0x2c/0x84 [ 8.024212] el0t64synchandler+0xf4/0x120 [ 8.028598] el0t64sync+0x190/0x194

Go back to the original behavior, if the automotive safety package is found to be supported in hardware enable all the features unless safetyfeatcfg is passed in saying this particular platform only supports a subset of the features.

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.11-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.11-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}