CyberSecBulletin
CVE-2022-49870NVD status: Analyzed

Linux: Out-of-bounds Read

CVE-2022-49870 is a high-severity out-of-bounds read vulnerability in Linux, with a CVSS 3.1 base score of 7.1 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 versions 5b79fa628e2ab789e629a83cd211ef9b4c1a593e, 65b0bc7a0690861812ade523d19f82688ab819dc, dbaab08c8677d598244d21afb7818e44e1c5d826 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.22% 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 5b79fa628e2ab789e629a83cd211ef9b4c1a593e or 65b0bc7a0690861812ade523d19f82688ab819dc or dbaab08c8677d598244d21afb7818e44e1c5d826 or 5661f111a1616ac105ec8cec81bff99b60f847ac, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 4.9.334 or 4.14.300 or 4.19.267 or 5.4.225, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinuxe338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, 5b79fa628e2ab789e629a83cd211ef9b4c1a593e; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, 65b0bc7a0690861812ade523d19f82688ab819dc; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, dbaab08c8677d598244d21afb7818e44e1c5d826; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, 5661f111a1616ac105ec8cec81bff99b60f847ac; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, fcbd2b336834bd24e1d9454ad5737856470c10d7; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, 151dc8087b5609e53b069c068e3f3ee100efa586; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, 27bdb134c043ff32c459d98f16550d0ffa0b3c34; e338d263a76af78fe8f38a72131188b58fceb591 up to, but not including, 46653972e3ea64f79e7f8ae3aa41a4d3fdb70a13; and 1 more ranges5b79fa628e2ab789e629a83cd211ef9b4c1a593e, 65b0bc7a0690861812ade523d19f82688ab819dc, dbaab08c8677d598244d21afb7818e44e1c5d826, 5661f111a1616ac105ec8cec81bff99b60f847ac, fcbd2b336834bd24e1d9454ad5737856470c10d7, 151dc8087b5609e53b069c068e3f3ee100efa586
LinuxLinux Kernel2.6.25 up to, but not including, 4.9.334; 4.10 up to, but not including, 4.14.300; 4.15 up to, but not including, 4.19.267; 4.20 up to, but not including, 5.4.225; 5.5 up to, but not including, 5.10.155; 5.11 up to, but not including, 5.15.79; 5.16 up to, but not including, 6.0.9; 6.14.9.334, 4.14.300, 4.19.267, 5.4.225, 5.10.155, 5.15.79

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
NoneNothing can be modified.
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:N/A:H. Scored by NVD.

Official description

In the Linux kernel, the following vulnerability has been resolved: capabilities: fix undefined behavior in bit shift for CAP_TO_MASK Shifting signed 32-bit value by 31 bits is undefined, so changing significant bit to unsigned. The UBSAN warning calltrace like below: UBSAN: shift-out-of-bounds in security/commoncap.c:1252:2 left shift of 1 by 31 places cannot be represented in type 'int' Call Trace: <TASK> dump_stack_lvl+0x7d/0xa5 dump_stack+0x15/0x1b ubsan_epilogue+0xe/0x4e __ubsan_handle_shift_out_of_bounds+0x1e7/0x20c cap_task_prctl+0x561/0x6f0 security_task_prctl+0x5a/0xb0 __x64_sys_prctl+0x61/0x8f0 do_syscall_64+0x58/0x80 entry_SYSCALL_64_after_hwframe+0x63/0xcd </TASK>

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

Recent Out-of-bounds Read vulnerabilities

Spotted an error? Tell us.