# CVE-2021-47146: mld: fix panic in mld\_newpack()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2024-03-25T09:07:43.043Z
- **Modified:** 2026-06-17T04:16:39.140Z

## Who should check

- Anyone running Linux \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 17728616a4c85baf0edc975c60ba4e4157684d9a; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 221142038f36d9f28b64e83e954774da4d4ccd17; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 4b77ad9097067b31237eeeee0bf70f80849680a0; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 37d697759958d111439080bab7e14d2b0e7b39f5; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< beb39adb150f8f3b516ddf7c39835a9788704d23; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< a76fb9ba545289379acf409653ad5f74417be59c; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 020ef930b826d21c5446fdc9db80fd72a791bc21
- Anyone running Linux 2.6.35

## Description

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

mld: fix panic in mld\_newpack()

mld\_newpack() doesn't allow to allocate high order page,
only order-0 allocation is allowed.
If headroom size is too large, a kernel panic could occur in skb\_put().

Test commands:
    ip netns del A
    ip netns del B
    ip netns add A
    ip netns add B
    ip link add veth0 type veth peer name veth1
    ip link set veth0 netns A
    ip link set veth1 netns B

    ip netns exec A ip link set lo up
    ip netns exec A ip link set veth0 up
    ip netns exec A ip -6 a a 2001:db8:0::1/64 dev veth0
    ip netns exec B ip link set lo up
    ip netns exec B ip link set veth1 up
    ip netns exec B ip -6 a a 2001:db8:0::2/64 dev veth1
    for i in {1..99}
    do
        let A=$i-1
        ip netns exec A ip link add ip6gre$i type ip6gre \\
	local 2001:db8:$A::1 remote 2001:db8:$A::2 encaplimit 100
        ip netns exec A ip -6 a a 2001:db8:$i::1/64 dev ip6gre$i
        ip netns exec A ip link set ip6gre$i up

        ip netns exec B ip link add ip6gre$i type ip6gre \\
	local 2001:db8:$A::2 remote 2001:db8:$A::1 encaplimit 100
        ip netns exec B ip -6 a a 2001:db8:$i::2/64 dev ip6gre$i
        ip netns exec B ip link set ip6gre$i up
    done

Splat looks like:
kernel BUG at net/core/skbuff.c:110!
invalid opcode: 0000 \[\#1\] SMP DEBUG\_PAGEALLOC KASAN PTI
CPU: 0 PID: 7 Comm: kworker/0:1 Not tainted 5.12.0+ \#891
Workqueue: ipv6\_addrconf addrconf\_dad\_work
RIP: 0010:skb\_panic+0x15d/0x15f
Code: 92 fe 4c 8b 4c 24 10 53 8b 4d 70 45 89 e0 48 c7 c7 00 ae 79 83
41 57 41 56 41 55 48 8b 54 24 a6 26 f9 ff \<0f\> 0b 48 8b 6c 24 20 89
34 24 e8 4a 4e 92 fe 8b 34 24 48 c7 c1 20
RSP: 0018:ffff88810091f820 EFLAGS: 00010282
RAX: 0000000000000089 RBX: ffff8881086e9000 RCX: 0000000000000000
RDX: 0000000000000089 RSI: 0000000000000008 RDI: ffffed1020123efb
RBP: ffff888005f6eac0 R08: ffffed1022fc0031 R09: ffffed1022fc0031
R10: ffff888117e00187 R11: ffffed1022fc0030 R12: 0000000000000028
R13: ffff888008284eb0 R14: 0000000000000ed8 R15: 0000000000000ec0
FS:  0000000000000000(0000) GS:ffff888117c00000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8b801c5640 CR3: 0000000033c2c006 CR4: 00000000003706f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ? ip6\_mc\_hdr.isra.26.constprop.46+0x12a/0x600
 ? ip6\_mc\_hdr.isra.26.constprop.46+0x12a/0x600
 skb\_put.cold.104+0x22/0x22
 ip6\_mc\_hdr.isra.26.constprop.46+0x12a/0x600
 ? rcu\_read\_lock\_sched\_held+0x91/0xc0
 mld\_newpack+0x398/0x8f0
 ? ip6\_mc\_hdr.isra.26.constprop.46+0x600/0x600
 ? lock\_contended+0xc40/0xc40
 add\_grhead.isra.33+0x280/0x380
 add\_grec+0x5ca/0xff0
 ? mld\_sendpack+0xf40/0xf40
 ? lock\_downgrade+0x690/0x690
 mld\_send\_initial\_cr.part.34+0xb9/0x180
 ipv6\_mc\_dad\_complete+0x15d/0x1b0
 addrconf\_dad\_completed+0x8d2/0xbb0
 ? lock\_downgrade+0x690/0x690
 ? addrconf\_rs\_timer+0x660/0x660
 ? addrconf\_dad\_work+0x73c/0x10e0
 addrconf\_dad\_work+0x73c/0x10e0

Allowing high order page allocation could fix this problem.

## Affected and fixed versions

- Linux: \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 17728616a4c85baf0edc975c60ba4e4157684d9a; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 221142038f36d9f28b64e83e954774da4d4ccd17; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 4b77ad9097067b31237eeeee0bf70f80849680a0; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 37d697759958d111439080bab7e14d2b0e7b39f5; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< beb39adb150f8f3b516ddf7c39835a9788704d23; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< a76fb9ba545289379acf409653ad5f74417be59c; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 020ef930b826d21c5446fdc9db80fd72a791bc21 (cvelist)
- Linux: 2.6.35 (cvelist)

## Mitigation

- Upgrade Linux to 020ef930b826d21c5446fdc9db80fd72a791bc21 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47146. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47146.md
Affected: Linux >= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, < 0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1; >= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, < 17728616a4c85baf0edc975c60ba4e4157684d9a; >= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, < 221142038f36d9f28b64e83e954774da4d4ccd17; >= 72e09ad107e78d69ff4d3b9…
Fixed in: Linux 0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1, Linux 17728616a4c85baf0edc975c60ba4e4157684d9a, Linux 221142038f36d9f28b64e83e954774da4d4ccd17, Linux 4b77ad9097067b31237eeeee0bf70f80849680a0, Linux 37d697759958d111439080bab7e14d2b0e7b39f5, Linux 020ef930b826d21c5446fdc9db80fd72a791bc21

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47146 being exploited?

There is no confirmed exploitation: CVE-2021-47146 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47146?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47146?

Linux \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 17728616a4c85baf0edc975c60ba4e4157684d9a; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 221142038f36d9f28b64e83e954774da4d4ccd17; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 4b77ad9097067b31237eeeee0bf70f80849680a0; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 37d697759958d111439080bab7e14d2b0e7b39f5; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< beb39adb150f8f3b516ddf7c39835a9788704d23; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< a76fb9ba545289379acf409653ad5f74417be59c; \>= 72e09ad107e78d69ff4d3b97a69f0aad2b77280f, \< 020ef930b826d21c5446fdc9db80fd72a791bc21; Linux 2.6.35.

### Is there a fix for CVE-2021-47146?

Yes. Fixed in Linux 0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1, Linux 17728616a4c85baf0edc975c60ba4e4157684d9a, Linux 221142038f36d9f28b64e83e954774da4d4ccd17, Linux 4b77ad9097067b31237eeeee0bf70f80849680a0, Linux 37d697759958d111439080bab7e14d2b0e7b39f5, Linux 020ef930b826d21c5446fdc9db80fd72a791bc21. Upgrade Linux to 020ef930b826d21c5446fdc9db80fd72a791bc21 or later.

### How do I check if I'm affected by CVE-2021-47146?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0e35b7457b7b6e73ffeaaca1a577fdf1af0feca1>
- patch: <https://git.kernel.org/stable/c/17728616a4c85baf0edc975c60ba4e4157684d9a>
- patch: <https://git.kernel.org/stable/c/221142038f36d9f28b64e83e954774da4d4ccd17>
- patch: <https://git.kernel.org/stable/c/4b77ad9097067b31237eeeee0bf70f80849680a0>
- patch: <https://git.kernel.org/stable/c/37d697759958d111439080bab7e14d2b0e7b39f5>
- patch: <https://git.kernel.org/stable/c/beb39adb150f8f3b516ddf7c39835a9788704d23>
- patch: <https://git.kernel.org/stable/c/a76fb9ba545289379acf409653ad5f74417be59c>
- patch: <https://git.kernel.org/stable/c/020ef930b826d21c5446fdc9db80fd72a791bc21>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47146>

HTML: <https://flawdb.com/CVE-2021-47146> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47146>
