Skip to content
This advisory has been withdrawn (2026-11-17).
Medium 4.1

fork: release the files of a failed fork after sched_cancel_fork()

CVE-2026-99217 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
< 6.12.115→ 6.12.115
≥ 6.13.0, < 6.18.60→ 6.18.60
≥ 6.19.0, < 7.2.14→ 7.2.14
≥ 7.3.0, < 7.3.1→ 7.3.1

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:

fork: release the files of a failed fork after sched_cancel_fork()

Reorder copy_process() cleanup so sched_fork() taking scx_fork_rwsem
scx_pre_fork() is safe and isn't held around exiting files. Right now, a
fork that fails while another thread closed the bpf link fd will
deadlock against its own read side. It also blocks every fork on the
system:

copy_process()                  holds scx_fork_rwsem for read
  exit_files()
    close_files()
      filp_close_sync()
        bpf_scx_unreg()
          kthread_flush_work()  waits for the disable work
            scx_root_disable()
              percpu_down_write(&scx_fork_rwsem)

Simply release the child's files after sched_cancel_fork() dropped the
lock. The task starts out as a copy of its parent so p->files points to
the parent's table until copy_files() replaces it. exit_files() must not
run for a fork that failed before that. Clear p->files up front so
exit_files() is a no-op for those and make copy_files() set it
explicitly for CLONE_FILES.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

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