CVE-2022-48980·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: dsa: sja1105: avoid out of bounds access in sja1105_init_l2_policing() The SJA1105 family has 45 L2 policing table entries (SJA1105_MAX_L2_POLICING_COUNT) and SJA1110 has 110 (SJA1110_MAX_L2_POLICING_COUNT). Keeping the table structure but accounting for the difference in port count (5 in SJA1105 vs 10 in SJA1110) does not fully explain the difference. Rather, the SJA1110 also has L2 ingress policers for multicast traffic. If a packet is classified as multicast, it will be processed by the policer index 99 + SRCPORT. The sja1105_init_l2_policing() function initializes all L2 policers such that they don't interfere with normal packet reception by default. To have a common code between SJA1105 and SJA1110, the index of the multicast policer for the port is calculated because it's an index that is out of bounds for SJA1105 but in bounds for SJA1110, and a bounds check is performed. The code fails to do the proper thing when determining what to do with the multicast policer of port 0 on SJA1105 (ds->num_ports = 5). The "mcast" index will be equal to 45, which is also equal to table->ops->max_entry_count (SJA1105_MAX_L2_POLICING_COUNT). So it passes through the check. But at the same time, SJA1105 doesn't have multicast policers. So the code programs the SHARINDX field of an out-of-bounds element in the L2 Policing table of the static config. The comparison between index 45 and 45 entries should have determined the code to not access this policer index on SJA1105, since its memory wasn't even allocated. With enough bad luck, the out-of-bounds write could even overwrite other valid kernel data, but in this case, the issue was detected using KASAN. Kernel log: sja1105 spi5.0: Probed switch chip: SJA1105Q ================================================================== BUG: KASAN: slab-out-of-bounds in sja1105_setup+0x1cbc/0x2340 Write of size 8 at addr ffffff880bd57708 by task kworker/u8:0/8 ... Workqueue: events_unbound deferred_probe_work_func Call trace: ... sja1105_setup+0x1cbc/0x2340 dsa_register_switch+0x1284/0x18d0 sja1105_probe+0x748/0x840 ... Allocated by task 8: ... sja1105_setup+0x1bcc/0x2340 dsa_register_switch+0x1284/0x18d0 sja1105_probe+0x748/0x840 ...
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.0.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2022-48980 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.16
Until: 6.0.13
Fixed in: 6.0.13
How to fix this CVE
Update your Linux kernel to version 6.0.13 or later to resolve an out-of-bounds memory access vulnerability in the SJA1105 network switch driver's L2 policing initialization. This flaw could lead to kernel memory corruption on systems using the affected SJA1105 or SJA1110 Ethernet switch chips. Apply the kernel update through your distribution's package manager and reboot to activate the patched version.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if SJA1105 or SJA1110 switch driver is loaded: lsmod | grep sja1105
- Search kernel logs for KASAN memory error reports: sudo dmesg | grep -i 'kasan\|slab-out-of-bounds'
- After patching, confirm the new kernel version is running: uname -r (should be 6.0.13 or later)
FAQ
What is CVE-2022-48980?
This vulnerability is an out-of-bounds memory write in the Linux kernel's SJA1105 network switch driver that occurs during L2 policing table initialization, where multicast policer indices are incorrectly validated on SJA1105 hardware, potentially corrupting kernel memory.
Is CVE-2022-48980 being actively exploited?
No, there are no known active exploits in the wild or public proof-of-concept code available for this vulnerability. It was discovered through kernel memory sanitizer testing.
What versions of Kernel are affected by CVE-2022-48980?
Linux kernel versions 5.16 through 6.0.12 are vulnerable. Version 6.0.13 and later contain the fix.
How do I check if my server is vulnerable to CVE-2022-48980?
Run 'uname -r' to check your kernel version; if it is between 5.16 and 6.0.12, you are vulnerable. Additionally, run 'lsmod | grep sja1105' to confirm if the affected driver is loaded on your system.
Does Defensia detect CVE-2022-48980?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-48980 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48980. Free for 1 server.
Get started free