HighCVE-2024-57996

    Linux Kernel: Out-of-Bounds Access (CVE-2024-57996)

    Published Last modified Sources: Siemens ProductCERT, SUSE, Debian LTS, BSI, CVE.org, Msrc Update Guide, EUVD

    What is affected, what to do

    Update Linux Kernel to version 5.4.297, Linux Kernel to version 5.10.239, Linux Kernel to version 5.15.186.

    Affected
    • Linux Kernel lt 2.6.12..5.4.297
    • Linux Kernel lt 5.5..5.10.239
    • Linux Kernel lt 5.11..5.15.186
    • Linux Kernel lt 5.16..6.1.129
    • Linux Kernel lt 6.2..6.6.76
    • Linux Kernel lt 6.7..6.12.13
    • Linux Kernel lt 6.13..6.13.2
    Fixed in
    • Linux Kernel 5.4.297
    • Linux Kernel 5.10.239
    • Linux Kernel 5.15.186
    • Linux Kernel 6.1.129
    • Linux Kernel 6.6.76
    • Linux Kernel 6.12.13
    • Linux Kernel 6.13.2
    • Linux Kernel 6.14

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: Vendor (CNA), CVSS v3

    7.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: Siemens ProductCERT, SUSE, Debian LTS, BSI, CVE.org, Msrc Update Guide, EUVD

    0.3 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 19.7

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    50.10 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.3 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    19.7
    Elevated — this CVE ranks above at least 10% of all CVEs scored today.
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

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

    net_sched: sch_sfq: don't allow 1 packet limit

    The current implementation does not work correctly with a limit of

    1. iproute2 actually checks for this and this patch adds the check in kernel as well.

    This fixes the following syzkaller reported crash:

    UBSAN: array-index-out-of-bounds in net/sched/sch_sfq.c:210:6 index 65535 is out of range for type 'struct sfq_head[128]' CPU: 0 PID: 2569 Comm: syz-executor101 Not tainted 5.10.0-smp-DEV #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x125/0x19f lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_out_of_bounds+0xed/0x120 lib/ubsan.c:347 sfq_link net/sched/sch_sfq.c:210 [inline] sfq_dec+0x528/0x600 net/sched/sch_sfq.c:238 sfq_dequeue+0x39b/0x9d0 net/sched/sch_sfq.c:500 sfq_reset+0x13/0x50 net/sched/sch_sfq.c:525 qdisc_reset+0xfe/0x510 net/sched/sch_generic.c:1026 tbf_reset+0x3d/0x100 net/sched/sch_tbf.c:319 qdisc_reset+0xfe/0x510 net/sched/sch_generic.c:1026 dev_reset_queue+0x8c/0x140 net/sched/sch_generic.c:1296 netdev_for_each_tx_queue include/linux/netdevice.h:2350 [inline] dev_deactivate_many+0x6dc/0xc20 net/sched/sch_generic.c:1362 __dev_close_many+0x214/0x350 net/core/dev.c:1468 dev_close_many+0x207/0x510 net/core/dev.c:1506 unregister_netdevice_many+0x40f/0x16b0 net/core/dev.c:10738 unregister_netdevice_queue+0x2be/0x310 net/core/dev.c:10695 unregister_netdevice include/linux/netdevice.h:2893 [inline] __tun_detach+0x6b6/0x1600 drivers/net/tun.c:689 tun_detach drivers/net/tun.c:705 [inline] tun_chr_close+0x104/0x1b0 drivers/net/tun.c:3640 __fput+0x203/0x840 fs/file_table.c:280 task_work_run+0x129/0x1b0 kernel/task_work.c:185 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x5ce/0x2200 kernel/exit.c:931 do_group_exit+0x144/0x310 kernel/exit.c:1046 __do_sys_exit_group kernel/exit.c:1057 [inline] __se_sys_exit_group kernel/exit.c:1055 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1055 do_syscall_64+0x6c/0xd0 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe5e7b52479 Code: Unable to access opcode bytes at RIP 0x7fe5e7b5244f. RSP: 002b:00007ffd3c800398 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe5e7b52479 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 RBP: 00007fe5e7bcd2d0 R08: ffffffffffffffb8 R09: 0000000000000014 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe5e7bcd2d0 R13: 0000000000000000 R14: 00007fe5e7bcdd20 R15: 00007fe5e7b24270

    The crash can be also be reproduced with the following (with a tc recompiled to allow for sfq limits of 1):

    tc qdisc add dev dummy0 handle 1: root tbf rate 1Kbit burst 100b lat 1s ../iproute2-6.9.0/tc/tc qdisc add dev dummy0 handle 2: parent 1:10 sfq limit 1 ifconfig dummy0 up ping -I dummy0 -f -c2 -W0.1 8.8.8.8 sleep 1

    Scenario that triggers the crash:

    • the first packet is sent and queued in TBF and SFQ; qdisc qlen is 1

    • TBF dequeues: it peeks from SFQ which moves the packet to the gso_skb list and keeps qdisc qlen set to 1. TBF is out of tokens so it schedules itself for later.

    • the second packet is sent and TBF tries to queues it to SFQ. qdisc qlen is now 2 and because the SFQ limit is 1 the packet is dropped by SFQ. At this point qlen is 1, and all of the SFQ slots are empty, however q->tail is not NULL.

    At this point, assuming no more packets are queued, when sch_dequeue runs again it will decrement the qlen for the current empty slot causing an underflow and the subsequent out of bounds access.

    Source: siemens_advisory, suse_csaf, Debian LTS Advisories, BSI CSAF, BSI WID Portal, cvelistv5, NVD (NIST), Microsoft Security Update Guide, CVE.org (MITRE), ENISA EUVD

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    LinuxLinux
    • 6.13 – < 6.13.2
    • —
    • 5.16 – < 6.1.129
    • 5.11 – < 5.15.186
    • 5.5 – < 5.10.239
    • 6.7 – < 6.12.13
    • 6.2 – < 6.6.76
    • 2.6.12 – < 5.4.297
    • 6.13.2
    • 6.14
    • 6.1.129
    • 5.15.186
    • 5.10.239
    • 6.12.13
    • 6.6.76
    • 5.4.297
    DellSecure Connect Gateway
    • < 5.30.0.14
    • 5.30.0.14
    SiemensSIMATIC S7
    • 1500 TM MFP V1.1.1 GNU/Linux subsystem
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxdebianlinuxbullseye
    Linuxdebianlinux-6.1bullseye
    Linuxlinuxlinux_kernel—

    References & sources

    Changes to this CVE

    Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).

    1. Record modifiedLinux

      Show 21 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      https://git.kernel.org/stable/c/10685681bafce6febb39770f3387621bf5d67d0b
      Referenceadded
      —
      https://git.kernel.org/stable/c/1b562b7f9231432da40d12e19786c1bd7df653a7
      Referenceadded
      —
      https://git.kernel.org/stable/c/1e6d9d87626cf89eeffb4d943db12cb5b10bf961
      Referenceadded
      —
      https://git.kernel.org/stable/c/35d0137305ae2f97260a9047f445bd4434bd6cc7
      Referenceadded
      —
      https://git.kernel.org/stable/c/7d8947f2153ee9c5ab4cb17861a11cc45f30e8c4
      Referenceadded
      —
      https://git.kernel.org/stable/c/7fefc294204f10a3405f175f4ac2be16d63f135e
      Referenceadded
      —
      https://git.kernel.org/stable/c/833e9a1c27b82024db7ff5038a51651f48f05e5e
      Referenceadded
      —
      https://git.kernel.org/stable/c/e12f6013d0a69660e8b99bfe381b9546ae667328
      Referenceremoved
      https://git.kernel.org/stable/c/10685681bafce6febb39770f3387621bf5d67d0b
      —
      Referenceremoved
      https://git.kernel.org/stable/c/1b562b7f9231432da40d12e19786c1bd7df653a7
      —
      Referenceremoved
      https://git.kernel.org/stable/c/1e6d9d87626cf89eeffb4d943db12cb5b10bf961
      —
      Referenceremoved
      https://git.kernel.org/stable/c/35d0137305ae2f97260a9047f445bd4434bd6cc7
      —
      Referenceremoved
      https://git.kernel.org/stable/c/7d8947f2153ee9c5ab4cb17861a11cc45f30e8c4
      —
      Referenceremoved
      https://git.kernel.org/stable/c/7fefc294204f10a3405f175f4ac2be16d63f135e
      —
      Referenceremoved
      https://git.kernel.org/stable/c/833e9a1c27b82024db7ff5038a51651f48f05e5e
      —
      Referenceremoved
      https://git.kernel.org/stable/c/e12f6013d0a69660e8b99bfe381b9546ae667328
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/10685681bafce6febb39770f3387621bf5d67d0b Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/35d0137305ae2f97260a9047f445bd4434bd6cc7 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/7d8947f2153ee9c5ab4cb17861a11cc45f30e8c4 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/7fefc294204f10a3405f175f4ac2be16d63f135e Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/833e9a1c27b82024db7ff5038a51651f48f05e5e Types: Patch
      —

      Source identifier: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    2. Record modifiedCVE Program

      Show 4 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
      Referenceadded
      —
      https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
      Referenceremoved
      https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
      —
      Referenceremoved
      https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
      —

      Source identifier: af854a3a-2127-422b-91ae-364da2661108

    3. Record modifiedSiemens ADP

      Show 4 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Affected versions (publisher)added
      —
      Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2024/57xxx/CVE-2024-57996.json">CVE-2024-57996</a>
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-082556.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-784472.html
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-082556.html
      —

      Source identifier: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    4. Record modifiedLinux

      CVSS V3.1: AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

      Show the original change
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      CVSSadded
      —
      AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

      Source identifier: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2024-57996
    <a href="https://intel.neosec.eu/en/cve/CVE-2024-57996"><img src="https://intel.neosec.eu/badge/cve/CVE-2024-57996.svg?lang=en" alt="CVE-2024-57996 – NEOSEC Intel" height="20"></a>