{"vuln_id":"CVE-2024-49940","aliases":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nl2tp: prevent possible tunnel refcount underflow\n\nWhen a session is created, it sets a backpointer to its tunnel. When\nthe session refcount drops to 0, l2tp_session_free drops the tunnel\nrefcount if session->tunnel is non-NULL. However, session->tunnel is\nset in l2tp_session_create, before the tunnel refcount is incremented\nby l2tp_session_register, which leaves a small window where\nsession->tunnel is non-NULL when the tunnel refcount hasn't been\nbumped.\n\nMoving the assignment to l2tp_session_register is trivial but\nl2tp_session_create calls l2tp_session_set_header_len which uses\nsession->tunnel to get the tunnel's encap. Add an encap arg to\nl2tp_session_set_header_len to avoid using session->tunnel.\n\nIf l2tpv3 sessions have colliding IDs, it is possible for\nl2tp_v3_session_get to race with l2tp_session_register and fetch a\nsession which doesn't yet have session->tunnel set. Add a check for\nthis case.","published_at":"2024-10-21T18:15:15.703000Z","modified_at":"2026-10-30T13:17:39.873000Z","first_seen_at":"2026-11-24T10:34:01.216173Z","severity":"medium","severity_source":"nvd","cvss_score":5.5,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00325,"epss_percentile":0.26009,"nvd_status":"Modified","enriched_at":"2026-11-24T10:36:26.238890Z","links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-49940"},"matched_alias":null,"items":[{"id":17959,"source":{"id":"ubuntu-usn","name":"Ubuntu Security Notices"},"title":"USN-9174-2: Linux kernel (Low Latency NVIDIA) vulnerabilities","summary":"Several security issues were discovered in the Linux kernel.\nAn attacker could possibly use these to compromise the system.\nThis update corrects flaws in the following subsystems:\n- Multiple devices driver;\n- eXpress Data Path;\n- Kernel build system;\n- ARM64 architecture;\n- PowerPC architecture;\n- RISC-V architecture;\n- S390 architecture;\n- x86 architecture;\n- Block layer subsystem;\n- Intel NPU Driver;\n- Compute Acceleration Framework;\n- ACPI drivers;\n- Drivers core;\n- Ublk userspace block driver;\n- Bus devices;\n- Hardware random number generator core;\n- Clock framework and drivers;\n- Clocksource drivers;\n- Hardware crypto device drivers;\n- CXL (Compute Express Link) drivers;\n- Buffer Sharing and Synchronization framework;\n- DMA engine subsystem;\n- DPLL subsystem;\n- EDAC drivers;\n- FireWire subsystem;\n- Arm Firmware Framework for ARMv8-A(FFA);\n- ARM SCMI message protocol;\n- GPIO subsystem;\n- GPU drivers;\n- HID subsystem;\n- Microsoft Hyper-V drivers;\n- Hardware monitoring drivers;\n- CoreSight HW tracing drivers;\n- I3C subsystem;\n- InfiniBand drivers;\n- Input Device core drivers;\n- Input Device (Mouse) drivers;\n- IOMMU subsystem;\n- Media drivers;\n- MMC subsystem;\n- Network drivers;\n- Mellanox network drivers;\n- Microsoft Azure Network Adapter (MANA) driver;\n- STMicroelectronics network drivers;\n- Texas Instruments network drivers;\n- Ethernet team driver;\n- MediaTek network drivers;\n- NTB driver;\n- NVME drivers;\n- Operating Performance Points (OPP) driver;\n- PCI subsystem;\n- Synopsys DesignWare PCIe PMU;\n- Pin controllers subsystem;\n- x86 platform drivers;\n- i.MX PM domains;\n- PTP clock framework;\n- PWM drivers;\n- Remote Processor subsystem;\n- S/390 drivers;\n- SCSI subsystem;\n- ASPEED SoC drivers;\n- SoundWire subsystem;\n- SPI subsystem;\n- Greybus lights staging drivers;\n- Realtek RTL8723BS SDIO drivers;\n- Thermal drivers;\n- TTY drivers;\n- UFS subsystem;\n- USB Gadget drivers;\n- USB Type-C Port Controller Manager driver;\n- vDPA drivers;\n- VFIO drivers;\n- Virtio Host (VHOST) subsystem;\n- Framebuffer layer;\n- ACRN Hypervisor Service Module driver;\n- Virtio drivers;\n- Watchdog drivers;\n- Xen hypervisor drivers;\n- AFS file system;\n- BTRFS file system;\n- Ceph distributed file system;\n- EROFS file system;\n- File systems infrastructure;\n- Ext4 file system;\n- F2FS file system;\n- GFS2 file system;\n- Network file systems library;\n- Network file system (NFS) client;\n- Network file system (NFS) server daemon;\n- NTFS3 file system;\n- OCFS2 file system;\n- Overlay file system;\n- Proc file system;\n- SMB network file system;\n- Tracing file system;\n- XFS file system;\n- BPF subsystem;\n- Control group (cgroup);\n- Memory Management;\n- MAC80211 subsystem;\n- KASAN memory debugging framework;\n- Mellanox drivers;\n- Networking core;\n- Netfilter;\n- Perf events;\n- Tracing infrastructure;\n- MediaTek SoC drivers;\n- RCU subsystem;\n- userfaultfd() syscall;\n- Amateur Radio drivers;\n- Bluetooth subsystem;\n- Wireless networking;\n- IPv4 networking;\n- IPv6 networking;\n- MultiProtocol Label Switching driver;\n- Network traffic control;\n- SCTP protocol;\n- TCP network protocol;\n- User-space API (UAPI);\n- IRQ subsystem;\n- Scheduler infrastructure;\n- Timer subsystem;\n- Memory management;\n- Ethernet bridge;\n- CAN network layer;\n- Ceph Core library;\n- Ethtool driver;\n- Handshake API;\n- IEEE802154.4 network protocol;\n- IFE protocol;\n- L2TP protocol;\n- Packet sockets;\n- Phonet protocol;\n- Qualcomm IPC Router (QRTR);\n- RxRPC session sockets;\n- SMC sockets;\n- Network sockets;\n- Sun RPC protocol;\n- TIPC protocol;\n- TLS protocol;\n- XFRM subsystem;\n- AppArmor security module;\n- SELinux security module;\n- ALSA framework;\n- Generic sound devices;\n- AMD SoC Alsa drivers;\n- Intel ASoC drivers;\n- QCOM ASoC drivers;\n- SOF drivers;\n- USB sound devices;\n- KVM subsystem;\n(CVE-2024-14040, CVE-2024-40954, CVE-2024-41008, CVE-2024-42107,\nCVE-2024-42139, CVE-2024-44951, CVE-2024-49940, CVE-2024-56544,\nCVE-2024-56702, CVE-2024-56712, CVE-2024-57809, CVE-2024-57857,\nCVE-2024-57976, CVE-2024-58012,…","url":"https://ubuntu.com/security/notices/USN-9174-2","published_at":"2026-11-24T08:40:59Z","updated_at":"2026-11-24T08:40:59Z","fetched_at":"2026-11-24T10:34:01.202503Z","severity":"high","cvss_score":7.8,"epss":0.00325,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2024-14040","vuln_ids":["CVE-2023-52452","CVE-2023-52490","CVE-2023-52586","CVE-2023-52590","CVE-2023-52591","CVE-2023-52653","CVE-2023-52671","CVE-2023-52751","CVE-2023-52770","CVE-2023-52771","CVE-2023-52888","CVE-2023-53149","CVE-2023-53261","CVE-2023-53394","CVE-2023-53447","CVE-2023-53523","CVE-2023-53781","CVE-2023-53823","CVE-2023-53846","CVE-2023-54013","CVE-2023-54107","CVE-2024-14040","CVE-2024-26661","CVE-2024-26662","CVE-2024-26669","CVE-2024-26670","CVE-2024-26677","CVE-2024-26690","CVE-2024-26740","CVE-2024-26799","CVE-2024-26841","CVE-2024-26866","CVE-2024-26869","CVE-2024-26876","CVE-2024-26886","CVE-2024-26889","CVE-2024-26947","CVE-2024-26948","CVE-2024-26953","CVE-2024-27010","CVE-2024-27011","CVE-2024-27022","CVE-2024-27041","CVE-2024-27057","CVE-2024-27062","CVE-2024-27408","CVE-2024-35784","CVE-2024-35799","CVE-2024-35860","CVE-2024-35904","CVE-2024-40954","CVE-2024-41008","CVE-2024-42107","CVE-2024-42139","CVE-2024-44951","CVE-2024-49940","CVE-2024-56544","CVE-2024-56702","CVE-2024-56712","CVE-2024-57809","CVE-2024-57857","CVE-2024-57976","CVE-2024-58012","USN-9174-2"],"tags":[],"cluster_id":3397,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/17959","html":"https://vulnwatch.ve1ve2.com/item/17959"}}]}