Skip to content
High 7.8

Use-After-Free in Kernel

CVE-2025-39881 First seen on SecPulse

Summary

Vulnerability in Kernel (CVE-2025-39881). Successful exploitation can lead to full system takeover. Mitigation: upgrade to 6.1.153, 6.6.107, 6.12.48, 6.16.8 or later.

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2025-39881 has been found in Kernel.
Successful exploitation can lead to full system takeover. CVSS score: 7.8/10.
What to do: upgrade Kernel to 6.1.153, 6.6.107, 6.12.48, 6.16.8 or later.
If unsure, ask your IT team or search "Kernel CVE-2025-39881" on the vendor's site.

CVE-2025-39881 (Kernel) — CWE-416 / CVSS v3 7.8
Attack vector: local / no user interaction
Patched: 6.1.153, 6.6.107, 6.12.48, 6.16.8 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Use-after-free (CWE-416) exists in Kernel.

Affected scope

Check the vendor advisory for the affected versions of Kernel.

Severity

Severity: High (CVSS 7.8/10). Successful exploitation can lead to full system takeover.

How to fix

Update to 6.1.153, 6.6.107, 6.12.48, 6.16.8.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'Kernel' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'Kernel' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で Kernel を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade Kernel to 6.1.153, 6.6.107, 6.12.48, 6.16.8

    ステージング環境で 6.1.153, 6.6.107, 6.12.48, 6.16.8 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
LinuxKernel
≥ 6.1.0, < 6.1.153→ 6.1.153
≥ 6.2.0, < 6.6.107→ 6.6.107
≥ 6.7.0, < 6.12.48→ 6.12.48
≥ 6.13.0, < 6.16.8→ 6.16.8

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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

kernfs: Fix UAF in polling when open file is released

A use-after-free (UAF) vulnerability was identified in the PSI (Pressure
Stall Information) monitoring mechanism:

BUG: KASAN: slab-use-after-free in psi_trigger_poll+0x3c/0x140
Read of size 8 at addr ffff3de3d50bd308 by task systemd/1

psi_trigger_poll+0x3c/0x140
cgroup_pressure_poll+0x70/0xa0
cgroup_file_poll+0x8c/0x100
kernfs_fop_poll+0x11c/0x1c0
ep_item_poll.isra.0+0x188/0x2c0

Allocated by task 1:
cgroup_file_open+0x88/0x388
kernfs_fop_open+0x73c/0xaf0
do_dentry_open+0x5fc/0x1200
vfs_open+0xa0/0x3f0
do_open+0x7e8/0xd08
path_openat+0x2fc/0x6b0
do_filp_open+0x174/0x368

Freed by task 8462:
cgroup_file_release+0x130/0x1f8
kernfs_drain_open_files+0x17c/0x440
kernfs_drain+0x2dc/0x360
kernfs_show+0x1b8/0x288
cgroup_file_show+0x150/0x268
cgroup_pressure_write+0x1dc/0x340
cgroup_file_write+0x274/0x548

Reproduction Steps:

  1. Open test/cpu.pressure and establish epoll monitoring
  2. Disable monitoring: echo 0 > test/cgroup.pressure
  3. Re-enable monitoring: echo 1 > test/cgroup.pressure

The race condition occurs because:

  1. When cgroup.pressure is disabled (echo 0 > cgroup.pressure), it:
    • Releases PSI triggers via cgroup_file_release()
    • Frees of->priv through kernfs_drain_open_files()
  2. While epoll still holds reference to the file and continues polling
  3. Re-enabling (echo 1 > cgroup.pressure) accesses freed of->priv

epolling disable/enable cgrou…

Source: NIST National Vulnerability Database NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details