Kernel: tun: bugs for oversize packet when napi frags enabled in tun_napi_alloc_frags

Summary

CVECVE-2023-3812
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-07-24 16:15:13 UTC
Updated2026-11-07 14:16:55 UTC
DescriptionAn out-of-bounds memory access flaw was found in the Linux kernel’s TUN/TAP device driver functionality in how a user generates a malicious (too big) networking packet when napi frags is enabled. This flaw allows a local user to crash or potentially escalate their privileges on the system.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-787 | CWE-416 | CWE-787 Out-of-bounds Write


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.0-513.9.1.rt7.311.el8_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.0-513.9.1.el8_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.1 Update Services For SAP Solutions Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.1 Update Services For SAP Solutions unaffected 0:4.18.0-147.94.1.el8_1 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support unaffected 0:4.18.0-193.133.1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service unaffected 0:4.18.0-193.133.1.rt13.184.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service unaffected 0:4.18.0-193.133.1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Update Services For SAP Solutions Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Update Services For SAP Solutions unaffected 0:4.18.0-193.133.1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support unaffected 0:4.18.0-305.120.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service unaffected 0:4.18.0-305.120.1.rt7.196.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service unaffected 0:4.18.0-305.120.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions unaffected 0:4.18.0-305.120.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support unaffected 0:4.18.0-372.87.1.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support unaffected 0:4.18.0-477.43.1.el8_8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:5.14.0-362.18.1.el9_3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:5.14.0-362.18.1.el9_3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support unaffected 0:5.14.0-70.80.1.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support unaffected 0:5.14.0-70.80.1.rt21.151.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:5.14.0-284.40.1.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:5.14.0-284.40.1.rt14.325.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Virtualization 4 For Red Hat Enterprise Linux 8 unaffected 0:4.18.0-372.87.1.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9 Not specified Not specified

References

ReferenceSourceLinkTags
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2024:2008 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2024:2006 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
cve-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2023:7548 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
kernel/git/torvalds/linux.git - Linux kernel source tree af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2023:7549 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
2224048 – (CVE-2023-3812) CVE-2023-3812 kernel: tun: bugs for oversize packet when napi frags enabled in tun_napi_alloc_frags af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Patch, Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2023:7554 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory, VDB Entry
access.redhat.com/errata/RHSA-2024:1961 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2023-07-19T00:00:00.000ZReported to Red Hat.
CNA2022-10-22T00:00:00.000ZMade public.

Workarounds

CNA: To mitigate this issue, prevent the tun module from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.

Legacy QID Mappings

  • 161208 Oracle Enterprise Linux Security Update for kernel (ELSA-2023-7549)
  • 161318 Oracle Enterprise Linux Security Update for kernel (ELSA-2024-12094)
  • 161404 Oracle Enterprise Linux Security Update for kernel (ELSA-2024-0461)
  • 242340 Red Hat Update for kpatch-patch (RHSA-2023:6799)
  • 242343 Red Hat Update for kernel (RHSA-2023:6813)
  • 242481 Red Hat Update for kernel (RHSA-2023:7382)
  • 242482 Red Hat Update for kernel-rt (RHSA-2023:7379)
  • 242483 Red Hat Update for kernel-rt (RHSA-2023:7389)
  • 242489 Red Hat Update for kpatch-patch (RHSA-2023:7411)
  • 242497 Red Hat Update for kpatch-patch (RHSA-2023:7418)
  • 242516 Red Hat Update for kernel (RHSA-2023:7549)
  • 242522 Red Hat Update for kpatch-patch (RHSA-2023:7554)
  • 242526 Red Hat Update for kernel-rt (RHSA-2023:7548)
  • 242612 Red Hat Update for kernel security (RHSA-2023:7370)
  • 242727 Red Hat Update for kpatch-patch (RHSA-2024:0340)
  • 242728 Red Hat Update for kpatch-patch (RHSA-2024:0378)
  • 242769 Red Hat Update for kpatch-patch (RHSA-2024:0554)
  • 242785 Red Hat Update for kpatch-patch (RHSA-2024:0593)
  • 242789 Red Hat Update for kernel (RHSA-2024:0575)
  • 242830 Red Hat Update for kernel-rt (RHSA-2024:0563)
  • 242831 Red Hat Update for kernel (RHSA-2024:0562)
  • 242839 Red Hat Update for kernel (RHSA-2024:0461)
  • 242855 Red Hat Update for kernel (RHSA-2024:0412)
  • 378889 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX2-SA-2023:0036)
  • 378892 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX3-SA-2023:0114)
  • 379043 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX3-SA-2023:0136)
  • 754863 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2023:3680-1)
  • 754869 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2023:3681-1)
  • 754883 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2023:3705-1)
  • 754920 SUSE Enterprise Linux Security Update for the Linux Kernel RT (Live Patch 0 for SLE 15 SP5) (SUSE-SU-2023:3772-1)
  • 754921 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 39 for SLE 15 SP1) (SUSE-SU-2023:3768-1)
  • 754923 SUSE Enterprise Linux Security Update for the Linux Kernel RT (Live Patch 6 for SLE 15 SP4) (SUSE-SU-2023:3783-1)
  • 754924 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 37 for SLE 15 SP1) (SUSE-SU-2023:3786-1)
  • 754927 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 31 for SLE 15 SP2) (SUSE-SU-2023:3788-1)
  • 754939 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 30 for SLE 15 SP2) (SUSE-SU-2023:3812-1)
  • 754940 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 43 for SLE 15 SP1) (SUSE-SU-2023:3811-1)
  • 754941 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 42 for SLE 15 SP1) (SUSE-SU-2023:3809-1)
  • 754947 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 33 for SLE 15 SP2) (SUSE-SU-2023:3844-1)
  • 754948 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 40 for SLE 15 SP1) (SUSE-SU-2023:3838-1)
  • 754976 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 36 for SLE 15 SP2) (SUSE-SU-2023:3846-1)
  • 754990 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 23 for SLE 15 SP3) (SUSE-SU-2023:3892-1)
  • 754992 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 38 for SLE 15 SP2) (SUSE-SU-2023:3889-1)
  • 754993 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 32 for SLE 15 SP2) (SUSE-SU-2023:3893-1)
  • 755006 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 26 for SLE 15 SP3) (SUSE-SU-2023:3928-1)
  • 941482 AlmaLinux Security Update for kernel (ALSA-2023:7549)
  • 961087 Rocky Linux Security Update for kernel-rt (RLSA-2023:7548)
  • 961089 Rocky Linux Security Update for kernel (RLSA-2023:7549)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report