Lucene search

K
cveLinuxCVE-2022-48786
HistoryJul 16, 2024 - 12:15 p.m.

CVE-2022-48786

2024-07-1612:15:03
Linux
web.nvd.nist.gov
36
linux kernel
vsock
vulnerability

AI Score

6.6

Confidence

High

EPSS

0

Percentile

13.4%

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

vsock: remove vsock from connected table when connect is interrupted by a signal

vsock_connect() expects that the socket could already be in the
TCP_ESTABLISHED state when the connecting task wakes up with a signal
pending. If this happens the socket will be in the connected table, and
it is not removed when the socket state is reset. In this situation it’s
common for the process to retry connect(), and if the connection is
successful the socket will be added to the connected table a second
time, corrupting the list.

Prevent this by calling vsock_remove_connected() if a signal is received
while waiting for a connection. This is harmless if the socket is not in
the connected table, and if it is in the table then removing it will
prevent list corruption from a double add.

Note for backporting: this patch requires d5afa82c977e (“vsock: correct
removal of socket from the list”), which is in all current stable trees
except 4.9.y.

Affected configurations

Vulners
Node
linuxlinux_kernelRange3.94.9.303
OR
linuxlinux_kernelRange4.10.04.14.268
OR
linuxlinux_kernelRange4.15.04.19.231
OR
linuxlinux_kernelRange4.20.05.4.181
OR
linuxlinux_kernelRange5.5.05.10.102
OR
linuxlinux_kernelRange5.11.05.15.25
OR
linuxlinux_kernelRange5.16.05.16.11
OR
linuxlinux_kernelRange5.17.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/vmw_vsock/af_vsock.c"
    ],
    "versions": [
      {
        "version": "d021c344051a",
        "lessThan": "0bb88f3f7e8d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "e3b3939fd137",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "2910bcb9f675",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "5f326fe2aef4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "87cd1bbd6677",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "787468ee7a43",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "addd62a8cb6f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d021c344051a",
        "lessThan": "b9208492fcae",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/vmw_vsock/af_vsock.c"
    ],
    "versions": [
      {
        "version": "3.9",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "3.9",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.9.303",
        "lessThanOrEqual": "4.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.268",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.231",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.181",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.102",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.25",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.11",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

High

EPSS

0

Percentile

13.4%