CVE-2024-42161

CVE Details

Release Date:2024-07-30

Description


In the Linux kernel, the following vulnerability has been resolved:\nbpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELD\n[Changes from V1:\n- Use a default branch in the switch statement to initialize `val'.]\nGCC warns that `val' may be used uninitialized in the\nBPF_CRE_READ_BITFIELD macro, defined in bpf_core_read.h as:\n[...]\nunsigned long long val; \\n[...] \\nswitch (__CORE_RELO(s, field, BYTE_SIZE)) { \\ncase 1: val = *(const unsigned char *)p; break; \\ncase 2: val = *(const unsigned short *)p; break; \\ncase 4: val = *(const unsigned int *)p; break; \\ncase 8: val = *(const unsigned long long *)p; break; \\n} \\n[...]\nval; \\n} \\nThis patch adds a default entry in the switch statement that sets\n`val' to zero in order to avoid the warning, and random values to be\nused in case __builtin_preserve_field_info returns unexpected values\nfor BPF_FIELD_BYTE_SIZE.\nTested in bpf-next master.\nNo regressions.

See more information about CVE-2024-42161 from MITRE CVE dictionary and NIST NVD


CVSS Scoring


NOTE: The following CVSS v3.1 metrics and score provided are preliminary and subject to review.

Base Score: 5.6 CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H
Attack Vector: Local network Attack Complexity: Low
Privileges Required: High User Interaction: None
Scope: Unchanged Confidentiality Impact: Low
Integrity Impact: Low Availability Impact: High

Errata information


PlatformErrataRelease Date
Oracle Linux version 8 (kernel-uek)ELSA-2024-126182024-09-12
Oracle Linux version 9 (kernel-uek)ELSA-2024-126182024-09-12


This page is generated automatically and has not been checked for errors or omissions. For clarification or corrections:

software.hardware.complete