CVE-2021-3348 Use after free in n/a
Local attackers with nbd device access can trigger a use-after-free in the Linux kernel, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3348?
CVE-2021-3348 is a high-severity use after free vulnerability in Debian Debian Linux, published on 1 Feb 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
nbd_add_socket in drivers/block/nbd.c in the Linux kernel through 5.10.12 has an ndb_queue_rq use-after-free that could be triggered by local attackers (with access to the nbd device) via an I/O request at a certain point during device setup, aka CID-b98e762e3d71.
Which versions are affected by CVE-2021-3348?
It affects 2 products.
Linux distribution packages (18)
kernel-default SUSE:Linux Enterprise High Availability Extension 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-default SUSE:Linux Enterprise Live Patching 12 SP5 | All versions | 4.12.14-122.63.1 |
kgraft-patch-SLE12-SP5_Update_16 SUSE:Linux Enterprise Live Patching 12 SP5 | All versions | 1-8.3.1 |
kernel-azure SUSE:Linux Enterprise Server 12 SP5 | All versions | 4.12.14-16.47.1 |
kernel-default SUSE:Linux Enterprise Server 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-source SUSE:Linux Enterprise Server 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-source-azure SUSE:Linux Enterprise Server 12 SP5 | All versions | 4.12.14-16.47.1 |
kernel-syms SUSE:Linux Enterprise Server 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-syms-azure SUSE:Linux Enterprise Server 12 SP5 | All versions | 4.12.14-16.47.1 |
kernel-azure SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 4.12.14-16.47.1 |
kernel-default SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-source SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-source-azure SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 4.12.14-16.47.1 |
kernel-syms SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-syms-azure SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 4.12.14-16.47.1 |
kernel-docs SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-obs-build SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 4.12.14-122.63.1 |
kernel-default SUSE:Linux Enterprise Workstation Extension 12 SP5 | All versions | 4.12.14-122.63.1 |
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2021-3348?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-3348 being exploited?
There is no known exploitation of CVE-2021-3348 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as CVE-2021-20207, DEBIAN-CVE-2021-3348, GHSA-7hqh-xccf-8jp4, SUSE-SU-2021:0739-1, SUSE-SU-2021:0742-1, UBUNTU-CVE-2021-3348.