🛡️ CVE-2024-57877 — kernel

🟡 CVSS 6.1 — Medium ✅ No Known Exploit NVD
6.1
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

arm64: ptrace: fix partial SETREGSET for NT_ARM_POE

In the Linux kernel, the following vulnerability has been resolved:

arm64: ptrace: fix partial SETREGSET for NT_ARM_POE

Currently poe_set() doesn't initialize the temporary 'ctrl' variable,

and a SETREGSET call with a length of zero will leave this

uninitialized. Consequently an arbitrary value will be written back to

target->thread.por_el0, potentially leaking up to 64 bits of memory from

the kernel stack. The read is limited to a specific slot on the stack,

and the issue does not provide a write mechanism.

Fix this by initializing the temporary value before copying the regset

from userspace, as for other regsets (e.g. NT_PRSTATUS, NT_PRFPREG,

NT_ARM_SYSTEM_CALL). In the case of a zero-length write, the existing

contents of POR_EL1 will be retained.

Before this patch:

| # ./poe-test

| Attempting to write NT_ARM_POE::por_el0 = 0x900d900d900d900d

| SETREGSET(nt=0x40f, len=8) wrote 8 bytes

|

| Attempting to read NT_ARM_POE::por_el0

| GETREGSET(nt=0x40f, len=8) read 8 bytes

| Read NT_ARM_POE::por_el0 = 0x900d900d900d900d

|

| Attempting to write NT_ARM_POE (zero length)

| SETREGSET(nt=0x40f, len=0) wrote 0 bytes

|

| Attempting to read NT_ARM_POE::por_el0

| GETREGSET(nt=0x40f, len=8) read 8 bytes

| Read NT_ARM_POE::por_el0 = 0xffff8000839c3d50

After this patch:

| # ./poe-test

| Attempting to write NT_ARM_POE::por_el0 = 0x900d900d900d900d

| SETREGSET(nt=0x40f, len=8) wrote 8 bytes

|

| Attempting to read NT_ARM_POE::por_el0

| GETREGSET(nt=0x40f, len=8) read 8 bytes

| Read NT_ARM_POE::por_el0 = 0x900d900d900d900d

|

| Attempting to write NT_ARM_POE (zero length)

| SETREGSET(nt=0x40f, len=0) wrote 0 bytes

|

| Attempting to read NT_ARM_POE::por_el0

| GETREGSET(nt=0x40f, len=8) read 8 bytes

| Read NT_ARM_POE::por_el0 = 0x900d900d900d900d

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability high.

Affected software

CVE-2024-57877 is recorded against 2 packages.

  • kernel (from 6.12.0 up to 6.12.5)
  • linux-kernel

Timeline and source

Published on 11 January 2025 and last revised on 15 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

CVE-2024-57877 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 6.1
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2025-01-11
Updated 2026-08-12
Modified 2026-07-15

Affected Packages

Software From version Fixed in
kernel 6.12.0 6.12.5
linux-kernel

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2024-57877 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.