Menu

Star on GitHub · 3.2k

CVE-2021-47103

9.8 · CRITICAL

In the Linux kernel, the following vulnerability has been resolved: inet: fully convert sk->sk_rx_dst to RCU rules syzbot reported various issues around early demux, one being included in this ch…

Published Mar 4, 2024CWE-416EPSS 0.95%

Overview

CVE-2021-47103 is a critical-severity vulnerability. It was published on March 4, 2024 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

inet: fully convert sk->sk_rx_dst to RCU rules

syzbot reported various issues around early demux,

one being included in this changelog [1]

sk->sk_rx_dst is using RCU protection without clearly

documenting it.

And following sequences in tcp_v4_do_rcv()/tcp_v6_do_rcv()

are not following standard RCU rules.

[a] dst_release(dst);

[b] sk->sk_rx_dst = NULL;

They look wrong because a delete operation of RCU protected

pointer is supposed to clear the pointer before

the call_rcu()/synchronize_rcu() guarding actual memory freeing.

In some cases indeed, dst could be freed before [b] is done.

We could cheat by clearing sk_rx_dst before calling

dst_release(), but this seems the right time to stick

to standard RCU annotations and debugging facilities.

[1]

BUG: KASAN: use-after-free in dst_check include/net/dst.h:470 [inline]

BUG: KASAN: use-after-free in tcp_v4_early_demux+0x95b/0x960 net/ipv4/tcp_ipv4.c:1792

Read of

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47103?

CVE-2021-47103 is a critical-severity vulnerability. It was published on March 4, 2024 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

How severe is CVE-2021-47103?

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-47103?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47103?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47103 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related CRITICAL CVEs from 2021

View all