{"vuln_id":"CVE-2024-56702","aliases":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Mark raw_tp arguments with PTR_MAYBE_NULL\n\nArguments to a raw tracepoint are tagged as trusted, which carries the\nsemantics that the pointer will be non-NULL.  However, in certain cases,\na raw tracepoint argument may end up being NULL. More context about this\nissue is available in [0].\n\nThus, there is a discrepancy between the reality, that raw_tp arguments\ncan actually be NULL, and the verifier's knowledge, that they are never\nNULL, causing explicit NULL checks to be deleted, and accesses to such\npointers potentially crashing the kernel.\n\nTo fix this, mark raw_tp arguments as PTR_MAYBE_NULL, and then special\ncase the dereference and pointer arithmetic to permit it, and allow\npassing them into helpers/kfuncs; these exceptions are made for raw_tp\nprograms only. Ensure that we don't do this when ref_obj_id > 0, as in\nthat case this is an acquired object and doesn't need such adjustment.\n\nThe reason we do mask_raw_tp_trusted_reg logic is because other will\nrecheck in places whether the register is a trusted_reg, and then\nconsider our register as untrusted when detecting the presence of the\nPTR_MAYBE_NULL flag.\n\nTo allow safe dereference, we enable PROBE_MEM marking when we see loads\ninto trusted pointers with PTR_MAYBE_NULL.\n\nWhile trusted raw_tp arguments can also be passed into helpers or kfuncs\nwhere such broken assumption may cause issues, a future patch set will\ntackle their case separately, as PTR_TO_BTF_ID (without PTR_TRUSTED) can\nalready be passed into helpers and causes similar problems. Thus, they\nare left alone for now.\n\nIt is possible that these checks also permit passing non-raw_tp args\nthat are trusted PTR_TO_BTF_ID with null marking. In such a case,\nallowing dereference when pointer is NULL expands allowed behavior, so\nwon't regress existing programs, and the case of passing these into\nhelpers is the same as above and will be dealt with later.\n\nAlso update the failure case in tp_btf_nullable selftest to capture the\nnew behavior, as the verifier will no longer cause an error when\ndirectly dereference a raw tracepoint argument marked as __nullable.\n\n  [0]: https://lore.kernel.org/bpf/ZrCZS6nisraEqehw@jlelli-thinkpadt14gen4.remote.csb","published_at":"2024-12-28T10:15:17.980000Z","modified_at":"2026-10-21T13:17:51.987000Z","first_seen_at":"2026-11-24T10:34:01.216176Z","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":["CWE-476"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.0025,"epss_percentile":0.16516,"nvd_status":"Modified","enriched_at":"2026-11-24T10:36:25.884805Z","links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-56702"},"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"}}]}