CVE-2022-3623
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2022-3623) was discovered in the Linux Kernel's hugetlb implementation, specifically affecting the followpagepte function in mm/gup.c. The vulnerability was discovered on September 1, 2022, and publicly disclosed on October 20, 2022. This issue affects various Linux distributions including Ubuntu and Debian systems running vulnerable kernel versions (Ubuntu Security, Debian Security).

Technical details

The vulnerability stems from a race condition when looking up a CONT-PTE/PMD size hugetlb page. The issue occurs specifically in architectures like ARM64 that support CONT-PTE/PMD size hugetlb, which allows for both PMD/PUD size hugetlb (2M and 1G) and CONT-PTE/PMD size (64K and 32M) with 4K page size specified. The core problem lies in using incorrect locking mechanisms - pteoffsetmaplock() instead of hugeptelock() - when accessing the pte entry for CONT-PTE size hugetlb in followpage_pte() (Kernel Commit).

Impact

The vulnerability can lead to denial of service (system crash) or information leaks. When exploited, it could allow attackers to cause data inconsistency errors, particularly during page migration operations. The unstable pte entry under the incorrect lock could lead to potential race issues, even when operating under what appears to be proper locking conditions (Debian LTS).

Mitigation and workarounds

The issue has been fixed in various Linux distributions through kernel updates. The fix involves renaming followhugepmd() to followhugepmdpte() to handle PMD and PTE level size hugetlb, using hugepte_lock() to obtain the correct pte entry lock. Ubuntu has released fixes for affected versions including 22.10 (5.19.0-28.29), 22.04 LTS (5.15.0-60.66), and 20.04 LTS (5.4.0-144.161). Debian has addressed this in version 5.10.162-1 (Ubuntu Security, Debian Security).

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-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
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