CVE-2021-47102·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: marvell: prestera: fix incorrect structure access In line: upper = info->upper_dev; We access upper_dev field, which is related only for particular events (e.g. event == NETDEV_CHANGEUPPER). So, this line cause invalid memory access for another events, when ptr is not netdev_notifier_changeupper_info. The KASAN logs are as follows: [ 30.123165] BUG: KASAN: stack-out-of-bounds in prestera_netdev_port_event.constprop.0+0x68/0x538 [prestera] [ 30.133336] Read of size 8 at addr ffff80000cf772b0 by task udevd/778 [ 30.139866] [ 30.141398] CPU: 0 PID: 778 Comm: udevd Not tainted 5.16.0-rc3 #6 [ 30.147588] Hardware name: DNI AmazonGo1 A7040 board (DT) [ 30.153056] Call trace: [ 30.155547] dump_backtrace+0x0/0x2c0 [ 30.159320] show_stack+0x18/0x30 [ 30.162729] dump_stack_lvl+0x68/0x84 [ 30.166491] print_address_description.constprop.0+0x74/0x2b8 [ 30.172346] kasan_report+0x1e8/0x250 [ 30.176102] __asan_load8+0x98/0xe0 [ 30.179682] prestera_netdev_port_event.constprop.0+0x68/0x538 [prestera] [ 30.186847] prestera_netdev_event_handler+0x1b4/0x1c0 [prestera] [ 30.193313] raw_notifier_call_chain+0x74/0xa0 [ 30.197860] call_netdevice_notifiers_info+0x68/0xc0 [ 30.202924] register_netdevice+0x3cc/0x760 [ 30.207190] register_netdev+0x24/0x50 [ 30.211015] prestera_device_register+0x8a0/0xba0 [prestera]
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.15.12
- Published
- 2024-03-04
Affected versions
From: 5.14
Until: 5.15.12
Fixed in: 5.15.12
How to fix this CVE
Update your Linux kernel to version 5.15.12 or later to patch a memory access vulnerability in the Marvell Prestera network driver. This vulnerability could allow a local attacker with limited privileges to cause kernel crashes or read sensitive memory. Apply the kernel update and reboot your system to ensure the fix is active.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version with: uname -r
- Verify if the prestera driver is loaded by running: lsmod | grep prestera
- Review kernel logs for KASAN reports with: dmesg | grep -i 'KASAN\|stack-out-of-bounds'
- Confirm the patch is applied by checking the kernel release date: uname -v
FAQ
What is CVE-2021-47102?
This vulnerability exists in the Marvell Prestera network driver within the Linux kernel, where the driver incorrectly accesses memory fields from network device notifier structures without first verifying the event type. This can lead to out-of-bounds memory reads when processing certain network device events.
Is CVE-2021-47102 being actively exploited?
No, CVE-2021-47102 is not listed in the CISA KEV catalog and has no publicly available exploits. However, local attackers with restricted privileges could still trigger the vulnerability intentionally.
What versions of Kernel are affected by CVE-2021-47102?
Linux kernel versions 5.14 through 5.15.11 are affected. The vulnerability was resolved in kernel 5.15.12 and later stable releases.
How do I check if my server is vulnerable to CVE-2021-47102?
Run 'uname -r' to display your kernel version. If it shows 5.14.x or 5.15.x (up to 5.15.11), and the prestera driver is in use (check with 'lsmod | grep prestera'), your system is vulnerable.
Does Defensia detect CVE-2021-47102?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47102 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-2021-47102. Free for 1 server.
Get started free