CVE-2021-47297 json
net: fix uninit-value in caif_seqpkt_sendmsg
published 2y ago modified 4mo ago also EUVD-2021-34302
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
net: fix uninit-value in caif_seqpkt_sendmsg
When nr_segs equal to zero in iovec_from_user, the object msg->msg_iter.iov is uninit stack memory in caif_seqpkt_sendmsg which is defined in ___sys_sendmsg. So we cann't just judge msg->msg_iter.iov->base directlly. We can use nr_segs to judge msg in caif_seqpkt_sendmsg whether has data buffers.
===================================================== BUG: KMSAN: uninit-value in caif_seqpkt_sendmsg+0x693/0xf60 net/caif/caif_socket.c:542 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x220 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 caif_seqpkt_sendmsg+0x693/0xf60 net/caif/caif_socket.c:542 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x12b6/0x1350 net/socket.c:2343 ___sys_sendmsg net/socket.c:2397 [inline] __sys_sendmmsg+0x808/0xc90 net/socket.c:2480 __compat_sys_sendmmsg net/compat.c:656 [inline]
Patch / fix
- Linux Linux 4.4.277, 4.9.277, 4.14.241, 4.19.199, 5.4.136, 5.10.54, 5.13.6, 5.14
- linux Debian 14, Debian 13, Debian 12 5.14.6-1
debian advisories DEBIAN-CVE-2021-47297
- linux Ubuntu 18.04 LTS 4.15.0-159.167
- linux Ubuntu 20.04 LTS 5.4.0-88.99
- linux-aws Ubuntu 18.04 LTS 4.15.0-1112.119
- linux-aws Ubuntu 20.04 LTS 5.4.0-1057.60
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1053.57
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1005.6
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1100.102
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1047.49
ubuntu advisories UBUNTU-CVE-2021-47297
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.222.1
- kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.222.1
- kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.222.1
- kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.222.1
- kernel-rt SLE Real Time 12 SP5 4.12.14-10.191.1
- kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.191.1
- kernel-rt_debug SLE Real Time 12 SP5 4.12.14-10.191.1
- kernel-source-rt SLE Real Time 12 SP5 4.12.14-10.191.1
suse advisories SUSE-SU-2024:2561-1SUSE-SU-2024:2381-1SUSE-SU-2024:2360-1
- git.kernel.org/stable/c/d9d646acad2c3590e189bb5d5c86ab8bd8a2dfc3 commit
- git.kernel.org/stable/c/5c6d8e2f7187b8e45a18c27acb7a3885f03ee3db commit
- git.kernel.org/stable/c/ffe31dd70b70a40cd6b21b78c1713a23e021843a commit
- git.kernel.org/stable/c/452c3ed7bf63721b07bc2238ed1261bb26027e85 commit
- git.kernel.org/stable/c/9413c0abb57f70a953b1116318d6aa478013c35d commit
- git.kernel.org/stable/c/1582a02fecffcee306663035a295e28e1c4aaaff commit
- git.kernel.org/stable/c/d4c7797ab1517515f0d08b3bc1c6b48883889c54 commit
- git.kernel.org/stable/c/991e634360f2622a683b48dfe44fe6d9cb765a09 commit
Is CVE-2021-47297 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47297 updated cvss 5.5
kernel: net: fix uninit-value in caif_seqpkt_sendmsg
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-908 Use of Uninitialized Resource
- Technology feeds
References
-
git.kernel.org
/stable/c/d9d646acad2c3590e189bb5d5c86ab8bd8a2dfc3
patch
-
git.kernel.org
/stable/c/5c6d8e2f7187b8e45a18c27acb7a3885f03ee3db
patch
-
git.kernel.org
/stable/c/ffe31dd70b70a40cd6b21b78c1713a23e021843a
patch
-
git.kernel.org
/stable/c/452c3ed7bf63721b07bc2238ed1261bb26027e85
patch
-
git.kernel.org
/stable/c/9413c0abb57f70a953b1116318d6aa478013c35d
patch
-
git.kernel.org
/stable/c/1582a02fecffcee306663035a295e28e1c4aaaff
patch
-
git.kernel.org
/stable/c/d4c7797ab1517515f0d08b3bc1c6b48883889c54
patch
-
git.kernel.org
/stable/c/991e634360f2622a683b48dfe44fe6d9cb765a09
patch
Sources
- CVE List CVE-2021-47297
- NVD CVE-2021-47297
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.