Linux KernelOperating system · Linux

CVE-2024-50250

HIGH · 7.1 CVSS v3.1 Published 2024-11-09
Fix available
A fix is available. Upgrade to 6.1.116 / 6.6.60 or later.
See remediation →
73/100
Remediation priority · Elevated
Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
In the Linux kernel, the following vulnerability has been resolved: fsdax: dax_unshare_iter needs to copy entire blocks The code that copies data from srcmap to iomap in dax_unshare_iter is very very broken, which bfoster's recent fsx changes have exposed. If the pos and len passed to dax_file_unshare are not aligned to an fsblock boundary, the iter pos and length in the _iter function will reflect this unalignment. dax_iomap_direct_access always returns a pointer to the start of the kmapped fsdax page, even if its pos argument is in the middle of that page. This is catastrophic for data integrity when iter->pos is not aligned to a page, because daddr/saddr do not point to the same byte in the file as iter->pos. Hence we corrupt user data by copying it to the wrong place. If iter->pos + iomap_length() in the _iter function not aligned to a page, then we fail to copy a full block, and only partially populate the destination block. This is catastrophic for data confidentiality because we expose stale pmem contents. Fix both of these issues by aligning copy_pos/copy_len to a page boundary (remember, this is fsdax so 1 fsblock == 1 base page) so that we always copy full blocks. We're not done yet -- there's no call to invalidate_inode_pages2_range, so programs that have the file range mmap'd will continue accessing the old memory mapping after the file metadata updates have completed. Be careful with the return value -- if the unshare succeeds, we still need to return the number of bytes that the iomap iter thinks we're operating on.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis

A detailed technical summary for this CVE is being prepared.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Linux KernelOperating system
Affected:>= 6.1.113, < 6.1.116>= 6.2, < 6.6.60>= 6.7, < 6.11.7= 6.12

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 6.1.116 / 6.6.60 / 6.11.7 or later
Fixed in 6.1.1166.6.606.11.7
Vendor patch git.kernel.org →
Recommended fix High confidence

Upgrade to Linux kernel >= 6.1.116 (for 6.1 LTS branch), >= 6.6.60 (for 6.6 LTS branch), >= 6.11.7 (for 6.7+ mainline), or the latest stable kernel version available from kernel.org

  1. 1. Identify the currently running Linux kernel version using `uname -r`
  2. 2. Check if the running kernel version is among the affected versions: >= 6.1.113 and < 6.1.116; >= 6.2 and < 6.6.60; >= 6.7 and < 6.11.7; or = 6.12
  3. 3. Schedule a maintenance window for the kernel upgrade, as it will require a system reboot
  4. 4. Update the system package manager (e.g., apt, yum, dnf) and install a kernel version >= 6.1.116, >= 6.6.60, or >= 6.11.7 depending on your kernel branch
  5. 5. For enterprise kernels, contact your Linux distribution vendor for the specific patched kernel package
  6. 6. After installation, reboot the system to load the patched kernel
  7. 7. Verify the fix is applied by checking the kernel version (`uname -r`) and confirming it contains the commit 50793801fc7f (can be verified via `cat /proc/version` or kernel release notes)
Caveat Kernel upgrades carry standard upgrade risks; ensure compatibility with local kernel modules and custom drivers before deploying in production. The fix adds invalidate_inode_pages2_range call which may have minor performance impact during dax_unshare operations.

Generated from the published advisory — verify against the referenced sources before acting.

We can perform the upgrade in your staging environment and verify nothing breaks — typical engagement from $1,950. Get the upgrade done

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-50250 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-50250 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data