Skip to content

Enhance Yama protections with proc_mem.force_override=ptrace #330

Description

proc_mem.force_override=ptrace

This essentially prevents a process from directly modifying its own memory mappings unless it is privileged.

a13xp0p0v/kernel-hardening-checker#201

https://lwn.net/Articles/983169/

While kernel.yama.ptrace_scope effectively protects other processes, it does not prevent a compromised process from modifying its own protected memory pages. This creates a security gap, as self-modification can be exploited to trigger race condition vulnerabilities (e.g., CVE-2022-2590)!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions