CVE-2021-47309

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47309
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47309.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47309
Related
Published
2024-05-21T15:15:18Z
Modified
2024-09-11T04:41:07.485374Z
Summary
[none]
Details

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

net: validate lwtstate->data before returning from skbtunnelinfo()

skbtunnelinfo() returns pointer of lwtstate->data as iptunnelinfo type without validation. lwtstate->data can have various types such as mplsiptunnelencap, etc and these are not compatible. So skbtunnelinfo() should validate before returning that pointer.

Splat looks like: BUG: KASAN: slab-out-of-bounds in vxlangetroute+0x418/0x4b0 [vxlan] Read of size 2 at addr ffff888106ec2698 by task ping/811

CPU: 1 PID: 811 Comm: ping Not tainted 5.13.0+ #1195 Call Trace: dumpstacklvl+0x56/0x7b printaddressdescription.constprop.8.cold.13+0x13/0x2ee ? vxlangetroute+0x418/0x4b0 [vxlan] ? vxlangetroute+0x418/0x4b0 [vxlan] kasanreport.cold.14+0x83/0xdf ? vxlangetroute+0x418/0x4b0 [vxlan] vxlangetroute+0x418/0x4b0 [vxlan] [ ... ] vxlanxmitone+0x148b/0x32b0 [vxlan] [ ... ] vxlanxmit+0x25c5/0x4780 [vxlan] [ ... ] devhardstartxmit+0x1ae/0x6e0 _devqueuexmit+0x1f39/0x31a0 [ ... ] neighxmit+0x2f9/0x940 mplsxmit+0x911/0x1600 [mplsiptunnel] lwtunnelxmit+0x18f/0x450 ipfinishoutput2+0x867/0x2040 [ ... ]

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.70-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}