net: dsa: sja1105: flower: reject cross-chip redirect
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.111, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: net: dsa: sja1105: flower: reject cross-chip redirect dsa_port_from_netdev() may return a valid port from a different switch chip. Programming another chip's port index into the local hardware causes redirection to the wrong port, or an out-of-bounds access if the index exceeds the local chip's port count. Apply a minimal fix that adds a check to catch this case and adjusts the extack message. When cls->common.skip_sw is not set, the operation could instead redirect to the upstream port and let the software or upstream switch(es) handle the forward, but that is not addressed here.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in 6bf5158af52a5293e9160d8f2992c629ca14aa7d; From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in 277f8611e017d3ff1ab06af58a6c538b55da1cc8; From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in eb177aa00c392de3dc530c34f173a962216f82dd; From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in d0e54098c072b6064cdcf8039075ada8b88583da; From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in c999cc39775381b68ed66eae57c1425452672c0f; From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in abd7511e12b231798332afa04ed9bee9e84f9445; From dfacc5a23e227cabdff41b6202f510398e90d36b · fixed in cfa5274a5dc2a23b957da5dc806d2ac0c7a66af0
- Linux Linux
5.8
- KernelLinux
From 5.8.0 · fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53
References 7
git.kernel.org
- stable/c/6bf5158af52a5293e9160d8f2992c629ca14aa7d
- stable/c/277f8611e017d3ff1ab06af58a6c538b55da1cc8
- stable/c/eb177aa00c392de3dc530c34f173a962216f82dd
- stable/c/d0e54098c072b6064cdcf8039075ada8b88583da
- stable/c/c999cc39775381b68ed66eae57c1425452672c0f
- stable/c/abd7511e12b231798332afa04ed9bee9e84f9445
- stable/c/cfa5274a5dc2a23b957da5dc806d2ac0c7a66af0