# CVE-2024-41023: sched/deadline: Fix task\_struct reference leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-07-29T14:31:40.439Z
- **Modified:** 2026-10-30T13:17:30.583Z

## Who should check

- Anyone running Linux \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< 8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< f8005214946fd1d9fefdeff19c6ce46d60de2cef; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< 7a54d31face626f62de415ebe77b43f76c3ffaf4; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< b58652db66c910c2245f5bee7deca41c12d707b9; f0e1c1d8ff908a39dd42e723d08f104505dfa601; 184c8ab5342450c4ae6fc5d937f9bb06c620dcf1; \>= 4.19.257, \< 4.20; \>= 5.4.212, \< 5.5
- Anyone running Linux 5.10

## Description

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

sched/deadline: Fix task\_struct reference leak

During the execution of the following stress test with linux-rt:

stress-ng --cyclic 30 --timeout 30 --minimize --quiet

kmemleak frequently reported a memory leak concerning the task\_struct:

unreferenced object 0xffff8881305b8000 (size 16136):
  comm "stress-ng", pid 614, jiffies 4294883961 (age 286.412s)
  object hex dump (first 32 bytes):
    02 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00  .@..............
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  debug hex dump (first 16 bytes):
    53 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00  S...............
  backtrace:
    \[\<00000000046b6790\>\] dup\_task\_struct+0x30/0x540
    \[\<00000000c5ca0f0b\>\] copy\_process+0x3d9/0x50e0
    \[\<00000000ced59777\>\] kernel\_clone+0xb0/0x770
    \[\<00000000a50befdc\>\] \_\_do\_sys\_clone+0xb6/0xf0
    \[\<000000001dbf2008\>\] do\_syscall\_64+0x5d/0xf0
    \[\<00000000552900ff\>\] entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76

The issue occurs in start\_dl\_timer(), which increments the task\_struct
reference count and sets a timer. The timer callback, dl\_task\_timer,
is supposed to decrement the reference count upon expiration. However,
if enqueue\_task\_dl() is called before the timer expires and cancels it,
the reference count is not decremented, leading to the leak.

This patch fixes the reference leak by ensuring the task\_struct
reference count is properly decremented when the timer is canceled.

## Affected and fixed versions

- Linux: \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< 8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< f8005214946fd1d9fefdeff19c6ce46d60de2cef; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< 7a54d31face626f62de415ebe77b43f76c3ffaf4; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< b58652db66c910c2245f5bee7deca41c12d707b9; f0e1c1d8ff908a39dd42e723d08f104505dfa601; 184c8ab5342450c4ae6fc5d937f9bb06c620dcf1; \>= 4.19.257, \< 4.20; \>= 5.4.212, \< 5.5 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 5.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-41023. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-41023.md
Affected: Linux >= feff2e65efd8d84cf831668e182b2ce73c604bbb, < 8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc; >= feff2e65efd8d84cf831668e182b2ce73c604bbb, < f8005214946fd1d9fefdeff19c6ce46d60de2cef; >= feff2e65efd8d84cf831668e182b2ce73c604bbb, < 7a54d31face626f62de415ebe77b43f76c3ffaf4; >= feff2e65efd8d84cf831668…
Fixed in: Linux 8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc, Linux 7a54d31face626f62de415ebe77b43f76c3ffaf4, Linux 4.20, Linux 5.5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-41023 being exploited?

There is no confirmed exploitation: CVE-2024-41023 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-41023?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-41023?

Linux \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< 8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< f8005214946fd1d9fefdeff19c6ce46d60de2cef; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< 7a54d31face626f62de415ebe77b43f76c3ffaf4; \>= feff2e65efd8d84cf831668e182b2ce73c604bbb, \< b58652db66c910c2245f5bee7deca41c12d707b9; f0e1c1d8ff908a39dd42e723d08f104505dfa601; 184c8ab5342450c4ae6fc5d937f9bb06c620dcf1; \>= 4.19.257, \< 4.20; \>= 5.4.212, \< 5.5; Linux 5.10.

### Is there a fix for CVE-2024-41023?

Yes. Fixed in Linux 8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc, Linux 7a54d31face626f62de415ebe77b43f76c3ffaf4, Linux 4.20, Linux 5.5. Upgrade Linux to 5.5 or later.

### How do I check if I'm affected by CVE-2024-41023?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7a54d31face626f62de415ebe77b43f76c3ffaf4>
- patch: <https://git.kernel.org/stable/c/b58652db66c910c2245f5bee7deca41c12d707b9>
- other: <https://git.kernel.org/stable/c/8acaaeb484097f46c93bb6c3f836d1c1c07fcbdc>
- other: <https://git.kernel.org/stable/c/f8005214946fd1d9fefdeff19c6ce46d60de2cef>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-41023>

HTML: <https://flawdb.com/CVE-2024-41023> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-41023>
