Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-42251

MEDIUM 5.5EPSS 16%

mm: page_ref: remove folio_try_get_rcu()

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < 16380f52b72166d6a33b508cc2509716f436253f; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < e7db2762ea3e69f215b3ec4db666006deccc37b4; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < fa2690af573dfefb47ba6eef888797a64b6b5f3c
  • Anyone running Linux 6.6

Vulnerability facts

Affected
Linux >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < 16380f52b72166d6a33b508cc2509716f436253f; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < e7db2762ea3e69f215b3ec4db666006deccc37b4; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < fa2690af573dfefb47ba6eef888797a64b6b5f3c; Linux 6.6
Fixed in
Linux 16380f52b72166d6a33b508cc2509716f436253f
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-617
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: mm: page_ref: remove folio_try_get_rcu() The below bug was reported on a non-SMP kernel: [ 275.267158][ T4335] ------------[ cut here ]------------ [ 275.267949][ T4335] kernel BUG at include/linux/page_ref.h:275! [ 275.268526][ T4335] invalid opcode: 0000 [#1] KASAN PTI [ 275.269001][ T4335] CPU: 0 PID: 4335 Comm: trinity-c3 Not tainted 6.7.0-rc4-00061-gefa7df3e3bb5 #1 [ 275.269787][ T4335] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 [ 275.270679][ T4335] RIP: 0010:try_get_folio (include/linux/page_ref.h:275 (discriminator 3) mm/gup.c:79 (discriminator 3)) [ 275.272813][ T4335] RSP: 0018:ffffc90005dcf650 EFLAGS: 00010202 [ 275.273346][ T4335] RAX: 0000000000000246 RBX: ffffea00066e0000 RCX: 0000000000000000 [ 275.274032][ T4335] RDX: fffff94000cdc007 RSI: 0000000000000004 RDI: ffffea00066e0034 [ 275.274719][ T4335] RBP: ffffea00066e0000 R08: 0000000000000000 R09: fffff94000cdc006 [ 275.275404][ T4335] R10: ffffea00066e0037 R11: 0000000000000000 R12: 0000000000000136 [ 275.276106][ T4335] R13: ffffea00066e0034 R14: dffffc0000000000 R15: ffffea00066e0008 [ 275.276790][ T4335] FS: 00007fa2f9b61740(0000) GS:ffffffff89d0d000(0000) knlGS:0000000000000000 [ 275.277570][ T4335] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 275.278143][ T4335] CR2: 00007fa2f6c00000 CR3: 0000000134b04000 CR4: 00000000000406f0 [ 275.278833][ T4335] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 275.279521][ T4335] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 275.280201][ T4335] Call Trace: [ 275.280499][ T4335] <TASK> [ 275.280751][ T4335] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) [ 275.281087][ T4335] ? do_trap (arch/x86/kernel/traps.c:112 arch/x86/kernel/traps.c:153) [ 275.281463][ T4335] ? try_get_folio (include/linux/page_ref.h:275 (discriminator 3) mm/gup.c:79 (discriminator 3)) [ 275.281884][ T4335] ? try_get_folio (include/linux/page_ref.h:275 (discriminator 3) mm/gup.c:79 (discriminator 3)) [ 275.282300][ T4335] ? do_error_trap (arch/x86/kernel/traps.c:174) [ 275.282711][ T4335] ? try_get_folio (include/linux/page_ref.h:275 (discriminator 3) mm/gup.c:79 (discriminator 3)) [ 275.283129][ T4335] ? handle_invalid_op (arch/x86/kernel/traps.c:212) [ 275.283561][ T4335] ? try_get_folio (include/linux/page_ref.h:275 (discriminator 3) mm/gup.c:79 (discriminator 3)) [ 275.283990][ T4335] ? exc_invalid_op (arch/x86/kernel/traps.c:264) [ 275.284415][ T4335] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:568) [ 275.284859][ T4335] ? try_get_folio (include/linux/page_ref.h:275 (discriminator 3) mm/gup.c:79 (discriminator 3)) [ 275.285278][ T4335] try_grab_folio (mm/gup.c:148) [ 275.285684][ T4335] __get_user_pages (mm/gup.c:1297 (discriminator 1)) [ 275.286111][ T4335] ? __pfx___get_user_pages (mm/gup.c:1188) [ 275.286579][ T4335] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 275.287034][ T4335] ? mark_lock (kernel/locking/lockdep.c:4656 (discriminator 1)) [ 275.287416][ T4335] __gup_longterm_locked (mm/gup.c:1509 mm/gup.c:2209) [ 275.288192][ T4335] ? __pfx___gup_longterm_locked (mm/gup.c:2204) [ 275.288697][ T4335] ? __pfx_lock_acquire (kernel/locking/lockdep.c:5722) [ 275.289135][ T4335] ? __pfx___might_resched (kernel/sched/core.c:10106) [ 275.289595][ T4335] pin_user_pages_remote (mm/gup.c:3350) [ 275.290041][ T4335] ? __pfx_pin_user_pages_remote (mm/gup.c:3350) [ 275.290545][ T4335] ? find_held_lock (kernel/locking/lockdep.c:5244 (discriminator 1)) [ 275.290961][ T4335] ? mm_access (kernel/fork.c:1573) [ 275.291353][ T4335] process_vm_rw_single_vec+0x142/0x360 [ 275.291900][ T4335] ? __pfx_process_vm_rw_single_vec+0x10/0x10 [ 275.292471][ T4335] ? mm_access (kernel/fork.c:1573) [ 275.292859][ T4335] process_vm_rw_core+0x272/0x4e0 [ 275.293384][ T4335] ? hlock_class (a ---truncated---

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < 16380f52b72166d6a33b508cc2509716f436253f; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < e7db2762ea3e69f215b3ec4db666006deccc37b4; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < fa2690af573dfefb47ba6eef888797a64b6b5f3c—cvelist
Linux6.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-42251. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42251.md
Affected: Linux >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < 16380f52b72166d6a33b508cc2509716f436253f; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < e7db2762ea3e69f215b3ec4db666006deccc37b4; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < fa2690af573dfefb47ba6eef888797a64b6b5f3c; Linux 6.6
Fixed in: Linux 16380f52b72166d6a33b508cc2509716f436253f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-42251 being exploited?

There is no confirmed exploitation: CVE-2024-42251 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-42251?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-42251?

Linux >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < 16380f52b72166d6a33b508cc2509716f436253f; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < e7db2762ea3e69f215b3ec4db666006deccc37b4; >= 57edfcfd3419b4799353d8cbd6ce49da075cfdbd, < fa2690af573dfefb47ba6eef888797a64b6b5f3c; Linux 6.6.

Is there a fix for CVE-2024-42251?

Yes. Fixed in Linux 16380f52b72166d6a33b508cc2509716f436253f. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-42251?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors