VULNERABILITY

Ubuntu: (Multiple Advisories) (CVE-2024-49861): Linux kernel vulnerabilities

Try Surface Command Get a continuous 360° view of your attack surface
Gartner Peer insights
4.4 Gartner Rating
Back to Search

Ubuntu: (Multiple Advisories) (CVE-2024-49861): Linux kernel vulnerabilities

Severity
6
CVSS
(AV:L/AC:L/Au:S/C:N/I:C/A:C)
Published
10/21/2024
Created
03/10/2025
Added
02/20/2025
Modified
03/05/2025

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix helper writes to read-only maps Lonial found an issue that despite user- and BPF-side frozen BPF map (like in case of .rodata), it was still possible to write into it from a BPF program side through specific helpers having ARG_PTR_TO_{LONG,INT} as arguments. In check_func_arg() when the argument is as mentioned, the meta->raw_mode is never set. Later, check_helper_mem_access(), under the case of PTR_TO_MAP_VALUE as register base type, it assumes BPF_READ for the subsequent call to check_map_access_type() and given the BPF map is read-only it succeeds. The helpers really need to be annotated as ARG_PTR_TO_{LONG,INT} | MEM_UNINIT when results are written into them as opposed to read out of them. The latter indicates that it's okay to pass a pointer to uninitialized memory as the memory is written to anyway. However, ARG_PTR_TO_{LONG,INT} is a special case of ARG_PTR_TO_FIXED_SIZE_MEM just with additional alignment requirement. So it is better to just get rid of the ARG_PTR_TO_{LONG,INT} special cases altogether and reuse the fixed size memory types. For this, add MEM_ALIGNED to additionally ensure alignment given these helpers write directly into the args via *<ptr> = val. The .arg*_size has been initialized reflecting the actual sizeof(*<ptr>). MEM_ALIGNED can only be used in combination with MEM_FIXED_SIZE annotated argument types, since in !MEM_FIXED_SIZE cases the verifier does not know the buffer size a priori and therefore cannot blindly write *<ptr> = val.

Solution(s)

  • ubuntu-upgrade-linux-image-6-11-0-1005-realtime
  • ubuntu-upgrade-linux-image-6-11-0-1008-raspi
  • ubuntu-upgrade-linux-image-6-11-0-1009-aws
  • ubuntu-upgrade-linux-image-6-11-0-1009-azure
  • ubuntu-upgrade-linux-image-6-11-0-1009-azure-fde
  • ubuntu-upgrade-linux-image-6-11-0-1009-gcp
  • ubuntu-upgrade-linux-image-6-11-0-1010-lowlatency
  • ubuntu-upgrade-linux-image-6-11-0-1010-lowlatency-64k
  • ubuntu-upgrade-linux-image-6-11-0-1011-oracle
  • ubuntu-upgrade-linux-image-6-11-0-1011-oracle-64k
  • ubuntu-upgrade-linux-image-6-11-0-1015-oem
  • ubuntu-upgrade-linux-image-6-11-0-18-generic
  • ubuntu-upgrade-linux-image-6-11-0-18-generic-64k
  • ubuntu-upgrade-linux-image-6-8-0-1006-gkeop
  • ubuntu-upgrade-linux-image-6-8-0-1019-gke
  • ubuntu-upgrade-linux-image-6-8-0-1019-raspi
  • ubuntu-upgrade-linux-image-6-8-0-1020-oracle
  • ubuntu-upgrade-linux-image-6-8-0-1020-oracle-64k
  • ubuntu-upgrade-linux-image-6-8-0-1022-nvidia
  • ubuntu-upgrade-linux-image-6-8-0-1022-nvidia-64k
  • ubuntu-upgrade-linux-image-6-8-0-1022-nvidia-lowlatency
  • ubuntu-upgrade-linux-image-6-8-0-1022-nvidia-lowlatency-64k
  • ubuntu-upgrade-linux-image-6-8-0-1023-aws
  • ubuntu-upgrade-linux-image-6-8-0-1024-gcp
  • ubuntu-upgrade-linux-image-6-8-0-1024-gcp-64k
  • ubuntu-upgrade-linux-image-6-8-0-54-generic
  • ubuntu-upgrade-linux-image-6-8-0-54-generic-64k
  • ubuntu-upgrade-linux-image-6-8-0-54-lowlatency
  • ubuntu-upgrade-linux-image-6-8-0-54-lowlatency-64k
  • ubuntu-upgrade-linux-image-aws
  • ubuntu-upgrade-linux-image-aws-lts-24-04
  • ubuntu-upgrade-linux-image-azure
  • ubuntu-upgrade-linux-image-azure-fde
  • ubuntu-upgrade-linux-image-gcp
  • ubuntu-upgrade-linux-image-gcp-64k
  • ubuntu-upgrade-linux-image-gcp-64k-lts-24-04
  • ubuntu-upgrade-linux-image-gcp-lts-24-04
  • ubuntu-upgrade-linux-image-generic
  • ubuntu-upgrade-linux-image-generic-64k
  • ubuntu-upgrade-linux-image-generic-64k-hwe-24-04
  • ubuntu-upgrade-linux-image-generic-hwe-24-04
  • ubuntu-upgrade-linux-image-generic-lpae
  • ubuntu-upgrade-linux-image-gke
  • ubuntu-upgrade-linux-image-gkeop
  • ubuntu-upgrade-linux-image-gkeop-6-8
  • ubuntu-upgrade-linux-image-kvm
  • ubuntu-upgrade-linux-image-lowlatency
  • ubuntu-upgrade-linux-image-lowlatency-64k
  • ubuntu-upgrade-linux-image-lowlatency-64k-hwe-22-04
  • ubuntu-upgrade-linux-image-lowlatency-hwe-22-04
  • ubuntu-upgrade-linux-image-nvidia
  • ubuntu-upgrade-linux-image-nvidia-6-8
  • ubuntu-upgrade-linux-image-nvidia-64k
  • ubuntu-upgrade-linux-image-nvidia-64k-6-8
  • ubuntu-upgrade-linux-image-nvidia-64k-hwe-22-04
  • ubuntu-upgrade-linux-image-nvidia-hwe-22-04
  • ubuntu-upgrade-linux-image-nvidia-lowlatency
  • ubuntu-upgrade-linux-image-nvidia-lowlatency-64k
  • ubuntu-upgrade-linux-image-oem-24-04
  • ubuntu-upgrade-linux-image-oem-24-04a
  • ubuntu-upgrade-linux-image-oem-24-04b
  • ubuntu-upgrade-linux-image-oracle
  • ubuntu-upgrade-linux-image-oracle-64k
  • ubuntu-upgrade-linux-image-oracle-64k-lts-24-04
  • ubuntu-upgrade-linux-image-oracle-lts-24-04
  • ubuntu-upgrade-linux-image-raspi
  • ubuntu-upgrade-linux-image-realtime
  • ubuntu-upgrade-linux-image-realtime-hwe-24-04
  • ubuntu-upgrade-linux-image-virtual
  • ubuntu-upgrade-linux-image-virtual-hwe-24-04

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial WATCH DEMO

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;