CVE-2022-48847
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-48847 is a slab-out-of-bounds vulnerability discovered in the Linux kernel's watch queue filter mechanism. The vulnerability was disclosed on July 16, 2024, affecting the watchqueuesetfilter() function. The issue occurs due to improper validation of filter type values against the typefilter bitmap capacity (Red Hat).

Technical details

The vulnerability exists in the watchqueuesetfilter() function where there are inconsistent checks for filter type values. While one check correctly uses 'sizeof(wfilter->typefilter) 8', another incorrectly uses 'sizeof(wfilter->type_filter) BITSPERLONG'. This inconsistency can lead to out-of-bounds writes in two ways: through _setbit() on wfilter->type_filter and by writing more elements in wfilter->filters[] than allocated. The vulnerability has been assigned a CVSS v3.1 score of 5.5, with attack vector being Local (L), attack complexity Low (L), and requiring Low (L) privileges (Red Hat).

Impact

When exploited, this vulnerability can cause a system crash through an out-of-bounds write. The bug triggers a KASAN (Kernel Address Sanitizer) slab-out-of-bounds error, potentially leading to system instability or denial of service. The impact is primarily limited to local attacks, as it requires local access to the system (Red Hat).

Mitigation and workarounds

The fix involves replacing the inconsistent size checks with a proper WATCHTYPE_NR constant, which represents the actual number of known types. The patch modifies both the watchqueue.h and watchqueue.c files to use DECLAREBITMAP(typefilter, WATCHTYPE_NR) instead of the previous implementation (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management