Skip to content

Enhance Yama protections with proc_mem.force_override=ptrace #330

@ghost

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)!

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