CyberSecBulletin
CVE-2023-6040NVD status: Analyzed

linux: Out-of-bounds Read

CVE-2023-6040 is a high-severity out-of-bounds read vulnerability in linux from The Linux Kernel Organization, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists version 5.18-rc1 as the first without the flaw, so updating linux to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.31% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update linux to 5.18-rc1 or a later version.
  2. Update Linux Kernel to 4.19.305 or 5.4.267 or 5.10.208 or 5.15.147, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
The Linux Kernel Organizationlinuxbefore 5.18-rc15.18-rc1
LinuxLinux Kernel4.16 up to, but not including, 4.19.305; 4.20 up to, but not including, 5.4.267; 5.5 up to, but not including, 5.10.208; 5.11 up to, but not including, 5.15.147; 5.16 up to, but not including, 5.184.19.305, 5.4.267, 5.10.208, 5.15.147, 5.18
DebianDebian Linux10.0Not stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA (ubuntu.com)
CVSS 3.17.8HighNVD

Official description

An out-of-bounds access vulnerability involving netfilter was reported and fixed as: f1082dd31fe4 (netfilter: nf_tables: Reject tables of unsupported family); While creating a new netfilter table, lack of a safeguard against invalid nf_tables family (pf) values within `nf_tables_newtable` function enables an attacker to achieve out-of-bounds access.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Out-of-bounds Read

The product reads data past the end, or before the beginning, of the intended buffer.

How developers prevent this class of flaw

  • Use a language that provides appropriate memory abstractions.

More Out-of-bounds Read vulnerabilities (CWE-125)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Patches and release notes

Other vulnerabilities in linux

All linux vulnerabilities

Recent Out-of-bounds Read vulnerabilities

Spotted an error? Tell us.