Rapid7 Vulnerability & Exploit Database

Rocky Linux: CVE-2024-35797: kernel (RLSA-2024-6567)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Rocky Linux: CVE-2024-35797: kernel (RLSA-2024-6567)

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
05/17/2024
Created
09/18/2024
Added
09/17/2024
Modified
09/17/2024

Description

In the Linux kernel, the following vulnerability has been resolved: mm: cachestat: fix two shmem bugs When cachestat on shmem races with swapping and invalidation, there are two possible bugs: 1) A swapin error can have resulted in a poisoned swap entry in the shmem inode's xarray. Calling get_shadow_from_swap_cache() on it will result in an out-of-bounds access to swapper_spaces[]. Validate the entry with non_swap_entry() before going further. 2) When we find a valid swap entry in the shmem's inode, the shadow entry in the swapcache might not exist yet: swap IO is still in progress and we're before __remove_mapping; swapin, invalidation, or swapoff have removed the shadow from swapcache after we saw the shmem swap entry. This will send a NULL to workingset_test_recent(). The latter purely operates on pointer bits, so it won't crash - node 0, memcg ID 0, eviction timestamp 0, etc. are all valid inputs - but it's a bogus test. In theory that could result in a false "recently evicted" count. Such a false positive wouldn't be the end of the world. But for code clarity and (future) robustness, be explicit about this case. Bail on get_shadow_from_swap_cache() returning NULL.

Solution(s)

  • rocky-upgrade-bpftool
  • rocky-upgrade-bpftool-debuginfo
  • rocky-upgrade-kernel
  • rocky-upgrade-kernel-core
  • rocky-upgrade-kernel-cross-headers
  • rocky-upgrade-kernel-debug
  • rocky-upgrade-kernel-debug-core
  • rocky-upgrade-kernel-debug-debuginfo
  • rocky-upgrade-kernel-debug-devel
  • rocky-upgrade-kernel-debug-devel-matched
  • rocky-upgrade-kernel-debug-modules
  • rocky-upgrade-kernel-debug-modules-core
  • rocky-upgrade-kernel-debug-modules-extra
  • rocky-upgrade-kernel-debug-uki-virt
  • rocky-upgrade-kernel-debuginfo
  • rocky-upgrade-kernel-devel
  • rocky-upgrade-kernel-devel-matched
  • rocky-upgrade-kernel-headers
  • rocky-upgrade-kernel-modules
  • rocky-upgrade-kernel-modules-core
  • rocky-upgrade-kernel-modules-extra
  • rocky-upgrade-kernel-rt
  • rocky-upgrade-kernel-rt-core
  • rocky-upgrade-kernel-rt-debug
  • rocky-upgrade-kernel-rt-debug-core
  • rocky-upgrade-kernel-rt-debug-debuginfo
  • rocky-upgrade-kernel-rt-debug-devel
  • rocky-upgrade-kernel-rt-debug-kvm
  • rocky-upgrade-kernel-rt-debug-modules
  • rocky-upgrade-kernel-rt-debug-modules-core
  • rocky-upgrade-kernel-rt-debug-modules-extra
  • rocky-upgrade-kernel-rt-debuginfo
  • rocky-upgrade-kernel-rt-devel
  • rocky-upgrade-kernel-rt-kvm
  • rocky-upgrade-kernel-rt-modules
  • rocky-upgrade-kernel-rt-modules-core
  • rocky-upgrade-kernel-rt-modules-extra
  • rocky-upgrade-kernel-tools
  • rocky-upgrade-kernel-tools-debuginfo
  • rocky-upgrade-kernel-tools-libs
  • rocky-upgrade-kernel-tools-libs-devel
  • rocky-upgrade-kernel-uki-virt
  • rocky-upgrade-kernel-zfcpdump
  • rocky-upgrade-kernel-zfcpdump-core
  • rocky-upgrade-kernel-zfcpdump-debuginfo
  • rocky-upgrade-kernel-zfcpdump-devel
  • rocky-upgrade-kernel-zfcpdump-devel-matched
  • rocky-upgrade-kernel-zfcpdump-modules
  • rocky-upgrade-kernel-zfcpdump-modules-core
  • rocky-upgrade-kernel-zfcpdump-modules-extra
  • rocky-upgrade-libperf
  • rocky-upgrade-libperf-debuginfo
  • rocky-upgrade-perf
  • rocky-upgrade-perf-debuginfo
  • rocky-upgrade-python3-perf
  • rocky-upgrade-python3-perf-debuginfo
  • rocky-upgrade-rtla
  • rocky-upgrade-rv

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

;