Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2022-48711
HistoryJun 20, 2024 - 11:13 a.m.

CVE-2022-48711 tipc: improve size validations for received domain records

2024-06-2011:13:06
Linux
github.com
1
linux kernel
vulnerability
cve-2022-48711
size validations
domain records
network topology
stack overflow
message data length
bit overflow
sk buffers

6.8 Medium

AI Score

Confidence

Low

0.013 Low

EPSS

Percentile

86.2%

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

tipc: improve size validations for received domain records

The function tipc_mon_rcv() allows a node to receive and process
domain_record structs from peer nodes to track their views of the
network topology.

This patch verifies that the number of members in a received domain
record does not exceed the limit defined by MAX_MON_DOMAIN, something
that may otherwise lead to a stack overflow.

tipc_mon_rcv() is called from the function tipc_link_proto_rcv(), where
we are reading a 32 bit message data length field into a uint16. To
avert any risk of bit overflow, we add an extra sanity check for this in
that function. We cannot see that happen with the current code, but
future designers being unaware of this risk, may introduce it by
allowing delivery of very large (> 64k) sk buffers from the bearer
layer. This potential problem was identified by Eric Dumazet.

This fixes CVE-2022-0435

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "175db196e45d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "fde4ddeadd09",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "f1af11edd08d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "d692e3406e05",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "3c7e59435535",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "1f1788616157",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "59ff7514f8c5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "35c55c9877f8",
        "lessThan": "9aa422ad3266",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/tipc/link.c",
      "net/tipc/monitor.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.8"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.8",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "4.9.301",
        "versionType": "custom",
        "lessThanOrEqual": "4.9.*"
      },
      {
        "status": "unaffected",
        "version": "4.14.266",
        "versionType": "custom",
        "lessThanOrEqual": "4.14.*"
      },
      {
        "status": "unaffected",
        "version": "4.19.229",
        "versionType": "custom",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.179",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.100",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.23",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "5.16.9",
        "versionType": "custom",
        "lessThanOrEqual": "5.16.*"
      },
      {
        "status": "unaffected",
        "version": "5.17",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/tipc/link.c",
      "net/tipc/monitor.c"
    ],
    "defaultStatus": "affected"
  }
]