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-50182

HIGH 7.1EPSS 18%

secretmem: disable memfd_secret() if arch cannot set direct map

Mitigation

  • Upgrade Linux to 532b53cebe58f34ce1c0f34d866f5c0e335c53c6 or later.

Who should check

  • Anyone running Linux >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < d0ae6ffa1aeb297aef89f49cfb894a83c329ebad; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 5ea0b7af38754d2b45ead9257bca47e84662e926; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 7caf966390e6e4ebf42775df54e7ee1f280ce677; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 757786abe4547eb3d9d0e8350a63bdb0f9824af2; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 532b53cebe58f34ce1c0f34d866f5c0e335c53c6
  • Anyone running Linux 5.14

Vulnerability facts

Affected
Linux >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < d0ae6ffa1aeb297aef89f49cfb894a83c329ebad; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 5ea0b7af38754d2b45ead9257bca47e84662e926; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 7caf966390e6e4ebf42775df54e7ee1f280ce677; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 757786abe4547eb3d9d0e8350a63bdb0f9824af2; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 532b53cebe58f34ce1c0f34d866f5c0e335c53c6; Linux 5.14
Fixed in
Linux 5ea0b7af38754d2b45ead9257bca47e84662e926, Linux 7caf966390e6e4ebf42775df54e7ee1f280ce677, Linux 757786abe4547eb3d9d0e8350a63bdb0f9824af2, Linux 532b53cebe58f34ce1c0f34d866f5c0e335c53c6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: secretmem: disable memfd_secret() if arch cannot set direct map Return -ENOSYS from memfd_secret() syscall if !can_set_direct_map(). This is the case for example on some arm64 configurations, where marking 4k PTEs in the direct map not present can only be done if the direct map is set up at 4k granularity in the first place (as ARM's break-before-make semantics do not easily allow breaking apart large/gigantic pages). More precisely, on arm64 systems with !can_set_direct_map(), set_direct_map_invalid_noflush() is a no-op, however it returns success (0) instead of an error. This means that memfd_secret will seemingly "work" (e.g. syscall succeeds, you can mmap the fd and fault in pages), but it does not actually achieve its goal of removing its memory from the direct map. Note that with this patch, memfd_secret() will start erroring on systems where can_set_direct_map() returns false (arm64 with CONFIG_RODATA_FULL_DEFAULT_ENABLED=n, CONFIG_DEBUG_PAGEALLOC=n and CONFIG_KFENCE=n), but that still seems better than the current silent failure. Since CONFIG_RODATA_FULL_DEFAULT_ENABLED defaults to 'y', most arm64 systems actually have a working memfd_secret() and aren't be affected. From going through the iterations of the original memfd_secret patch series, it seems that disabling the syscall in these scenarios was the intended behavior [1] (preferred over having set_direct_map_invalid_noflush return an error as that would result in SIGBUSes at page-fault time), however the check for it got dropped between v16 [2] and v17 [3], when secretmem moved away from CMA allocations. [1]: https://lore.kernel.org/lkml/20201124164930.GK8537@kernel.org/ [2]: https://lore.kernel.org/lkml/20210121122723.3446-11-rppt@kernel.org/#t [3]: https://lore.kernel.org/lkml/20201125092208.12544-10-rppt@kernel.org/

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < d0ae6ffa1aeb297aef89f49cfb894a83c329ebad; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 5ea0b7af38754d2b45ead9257bca47e84662e926; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 7caf966390e6e4ebf42775df54e7ee1f280ce677; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 757786abe4547eb3d9d0e8350a63bdb0f9824af2; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 532b53cebe58f34ce1c0f34d866f5c0e335c53c6—cvelist
Linux5.14—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-50182. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50182.md
Affected: Linux >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < d0ae6ffa1aeb297aef89f49cfb894a83c329ebad; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 5ea0b7af38754d2b45ead9257bca47e84662e926; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 7caf966390e6e4ebf42775df54e7ee1f280ce677; >= 1507f51255c9ff07d75909a…
Fixed in: Linux 5ea0b7af38754d2b45ead9257bca47e84662e926, Linux 7caf966390e6e4ebf42775df54e7ee1f280ce677, Linux 757786abe4547eb3d9d0e8350a63bdb0f9824af2, Linux 532b53cebe58f34ce1c0f34d866f5c0e335c53c6

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-50182 being exploited?

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

How serious is CVE-2024-50182?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-50182?

Linux >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < d0ae6ffa1aeb297aef89f49cfb894a83c329ebad; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 5ea0b7af38754d2b45ead9257bca47e84662e926; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 7caf966390e6e4ebf42775df54e7ee1f280ce677; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 757786abe4547eb3d9d0e8350a63bdb0f9824af2; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 532b53cebe58f34ce1c0f34d866f5c0e335c53c6; Linux 5.14.

Is there a fix for CVE-2024-50182?

Yes. Fixed in Linux 5ea0b7af38754d2b45ead9257bca47e84662e926, Linux 7caf966390e6e4ebf42775df54e7ee1f280ce677, Linux 757786abe4547eb3d9d0e8350a63bdb0f9824af2, Linux 532b53cebe58f34ce1c0f34d866f5c0e335c53c6. Upgrade Linux to 532b53cebe58f34ce1c0f34d866f5c0e335c53c6 or later.

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

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