Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2024-26884
HistoryApr 17, 2024 - 11:15 a.m.

CVE-2024-26884

2024-04-1711:15:10
CWE-119
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
55
linux kernel
hashtab overflow
vulnerability

7.8 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%

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

bpf: Fix hashtab overflow check on 32-bit arches

The hashtab code relies on roundup_pow_of_two() to compute the number of
hash buckets, and contains an overflow check by checking if the
resulting value is 0. However, on 32-bit arches, the roundup code itself
can overflow by doing a 32-bit left-shift of an unsigned long value,
which is undefined behaviour, so it is not guaranteed to truncate
neatly. This was triggered by syzbot on the DEVMAP_HASH type, which
contains the same check, copied from the hashtab code. So apply the same
fix to hashtab, by moving the overflow check to before the roundup.

Affected configurations

Vulners
NVD
Node
linuxlinux_kernelRange3.194.19.311
OR
linuxlinux_kernelRange4.20.05.4.273
OR
linuxlinux_kernelRange5.5.05.10.214
OR
linuxlinux_kernelRange5.11.05.15.153
OR
linuxlinux_kernelRange5.16.06.1.83
OR
linuxlinux_kernelRange6.2.06.6.23
OR
linuxlinux_kernelRange6.7.06.7.11
OR
linuxlinux_kernelRange6.8.06.8.2
OR
linuxlinux_kernelRange6.9.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o: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": [
      "kernel/bpf/hashtab.c"
    ],
    "versions": [
      {
        "version": "daaf427c6ab3",
        "lessThan": "33ec04cadb77",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "92c81fbb3ed2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "64f00b4df059",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "3b08cfc65f07",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "a83fdaeaea36",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "8435f0961bf3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "d817f0d34d92",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "a6fa75b5096c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "daaf427c6ab3",
        "lessThan": "6787d916c2cf",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "kernel/bpf/hashtab.c"
    ],
    "versions": [
      {
        "version": "3.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "3.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.311",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.273",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.214",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.153",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.83",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.23",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.11",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.2",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.8 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%