CVE-2021-3348: Race Condition

Published Jan 28, 2021
·
Updated

A flaw was found in the Linux kernel. A race codition in nbd ioctl may lead to a use-after-free read in nbdqueuerq causing a crash.

Upstream patch:

https://lore.kernel.org/linux-block/24dff677353e2e30a71d8b66c4dffdbdf77c4dbd.1611595239.git.josef@toxicpanda.com/

References:

https://www.openwall.com/lists/oss-security/2021/01/28/3

Other sources

nbdaddsocket in drivers/block/nbd.c in the Linux kernel through 5.10.12 has an ndbqueuerq 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.

Launchpad

Affected Software

3 affected componentsFixes available
Linux Linux kernel<=5.10.12
Debian Debian Linux=9.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade linux kernel to a version that resolves this vulnerability.

    Fixed in 5.10.12Patch CID-b98e762e3d71
  3. Compensating control

    If local attackers have access to the nbd device, restrict access to the nbd device to trusted users/hosts (e.g., tighten device node permissions and/or control who can issue I/O requests to the /dev/nbd* device).

Event History

Jan 28, 2021
Data Sourced
via Red Hat·11:52 PM
DescriptionSeverityAffected Software
Feb 1, 2021
CVE Published
via MITRE·03:43 AM
Data Sourced
via MITRE·03:43 AM
Description
Data Sourced
via NVD·04:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:57 PM
Description
May 10, 2025
Data Sourced
via Ubuntu·04:33 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-3348?

CVE-2021-3348 has been classified as a moderate severity vulnerability.

2

How do I fix CVE-2021-3348?

To fix CVE-2021-3348, upgrade to a kernel version that is 5.10.223-1 or later, or 6.1.119-1 or later.

3

What systems are affected by CVE-2021-3348?

CVE-2021-3348 affects Linux Kernel versions up to and including 5.10.12 and Debian Linux version 9.0.

4

What type of vulnerability is CVE-2021-3348?

CVE-2021-3348 is a use-after-free vulnerability due to a race condition in the nbd ioctl.

5

Can CVE-2021-3348 lead to system crashes?

Yes, CVE-2021-3348 can lead to a system crash due to a use-after-free read in nbd_queue_rq.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203