Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-50022 — kernel

🟡 CVSS 5.5 — Medium ✅ No Known Exploit NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

device-dax: correct pgoff align in dax_set_mapping()

In the Linux kernel, the following vulnerability has been resolved:

device-dax: correct pgoff align in dax_set_mapping()

pgoff should be aligned using ALIGN_DOWN() instead of ALIGN(). Otherwise,

vmf->address not aligned to fault_size will be aligned to the next

alignment, that can result in memory failure getting the wrong address.

It's a subtle situation that only can be observed in

page_mapped_in_vma() after the page is page fault handled by

dev_dax_huge_fault. Generally, there is little chance to perform

page_mapped_in_vma in dev-dax's page unless in specific error injection

to the dax device to trigger an MCE - memory-failure. In that case,

page_mapped_in_vma() will be triggered to determine which task is

accessing the failure address and kill that task in the end.

We used self-developed dax device (which is 2M aligned mapping) , to

perform error injection to random address. It turned out that error

injected to non-2M-aligned address was causing endless MCE until panic.

Because page_mapped_in_vma() kept resulting wrong address and the task

accessing the failure address was never killed properly:

[ 3783.719419] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3784.049006] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3784.049190] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3784.448042] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3784.448186] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3784.792026] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3784.792179] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3785.162502] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3785.162633] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3785.461116] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3785.461247] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3785.764730] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3785.764859] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3786.042128] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3786.042259] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3786.464293] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3786.464423] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3786.818090] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3786.818217] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

[ 3787.085297] mce: Uncorrected hardware memory error in user-access at

200c9742380

[ 3787.085424] Memory failure: 0x200c9742: recovery action for dax page:

Recovered

It took us several weeks to pinpoint this problem,  but we eventually

used bpftrace to trace the page fault and mce address and successfully

identified the issue.

Joao added:

; Likely we never reproduce in production because we always pin

: device-dax regions in the region align they provide (Qemu does

: similarly with prealloc in hugetlb/file backed memory). I think this

: bug requires that we touch *unpinned* device-dax regions unaligned to

: the device-dax selected alignment (page size i.e. 4K/2M/1G)

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

CVE-2024-50022 is recorded against 2 packages.

  • kernel (from 6.7.0 up to 6.11.4)
  • linux-kernel

Timeline and source

Published on 21 October 2024 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
lists.debian.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2024-50022 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-10-21
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 6.7.0 6.11.4
linux-kernel — —

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2024-50022 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024
✓