Read the docs
TI-2024-27368 Aliases CVE-2024-41006GHSA-xp5x-wr7x-fp9j

netrom: Fix a memory leak in nr_heartbeat_expiry()

Priority LOW 24CWE-401Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-401.

Summary

In the Linux kernel, the following vulnerability has been resolved: netrom: Fix a memory leak in nr_heartbeat_expiry() syzbot reported a memory leak in nr_create() [0]. Commit 409db27e3a2e ("netrom: Fix use-after-free of a listening socket.") added sock_hold() to the nr_heartbeat_expiry() function, where a) a socket has a SOCK_DESTROY flag or b) a listening socket has a SOCK_DEAD flag. But in the case "a," when the SOCK_DESTROY flag is set, the file descriptor has already been closed and the nr_release() function has been called. So it makes no sense to hold the reference count because no one will call another nr_destroy_socket() and put it as in the case "b." nr_connect nr_establish_data_link nr_start_heartbeat nr_release switch (nr->state) case NR_STATE_3 nr->state = NR_STATE_2 sock_set_flag(sk, SOCK_DESTROY); nr_rx_frame nr_process_rx_frame switch (nr->state) case NR_STATE_2 nr_state2_machine() nr_disconnect() nr_sk(sk)->state = NR_STATE_0 sock_set_flag(sk, SOCK_DEAD) nr_heartbeat_expiry switch (nr->state) case NR_STATE_0 if (sock_flag(sk, SOCK_DESTROY) || (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) sock_hold() // ( !!! ) nr_destroy_socket() To fix the memory leak, let's call sock_hold() only for a listening socket. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with Syzkaller. [0]: https://syzkaller.appspot.com/bug?extid=d327a1f3b12e1e206c16

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00242 15th percentileScored 2026-11-07
Fix Fixed Linux (Linux): 4.19.317, 5.4.279, 5.10.221 +6

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux4.19.272 to before 4.19.317; 5.4.231 to before 5.4.279; 5.10.166 to before 5.10.221; 5.15.91 to before 5.15.162; 6.1.9 to before 6.1.96; 4.14.305 to before 4.154.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.96, 4.15Patch availableCNA
LinuxLinux6.2 and later4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.96, 6.6.36, 6.9.7, 6.10Patch availableCNA
  • Linux VendorLinux Affected 4.19.272 to before 4.19.317; 5.4.231 to before 5.4.279; 5.10.166 to before 5.10.221; 5.15.91 to before 5.15.162; 6.1.9 to before 6.1.96; 4.14.305 to before 4.15 Fixed in 4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.96, 4.15 Patch available CNA
  • Linux VendorLinux Affected 6.2 and later Fixed in 4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.96, 6.6.36, 6.9.7, 6.10 Patch available CNA

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*4.19.272 to before 4.19.317; 5.4.231 to before 5.4.279; 5.10.166 to before 5.10.221; 5.15.91 to before 5.15.162; 6.1.9 to before 6.1.96; 6.2 to before 6.6.36; 6.7 to before 6.9.7VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*6.10 rc1VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:*6.10 rc2VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:*6.10 rc3VulnerableLinux
cpe:2.3:o:linux:linux_kernel:6.10:rc4:*:*:*:*:*:*6.10 rc4VulnerableLinux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.19.272 to before 4.19.317; 5.4.231 to before 5.4.279; 5.10.166 to before 5.10.221; 5.15.91 to before 5.15.162; 6.1.9 to before 6.1.96; 6.2 to before 6.6.36; 6.7 to before 6.9.7 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* Versions 6.10 rc1 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* Versions 6.10 rc2 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:* Versions 6.10 rc3 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:6.10:rc4:*:*:*:*:*:* Versions 6.10 rc4 Vulnerable ·Linux

Remediation

  • Fix · CNA Linux (Linux) Fixed in 4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.96, 4.15
  • Fix · CNA Linux (Linux) Fixed in 4.19.317, 5.4.279, 5.10.221, 5.15.162, 6.1.96, 6.6.36, 6.9.7, 6.10

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

Not affected: 4 products
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-41006
  2. 2026-10-03 Alias added: GHSA-xp5x-wr7x-fp9j

References

  • TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
  • TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
See all 15278 →

Sources