Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-37816— mei: vsc: Fix fortify-panic caused by invalid counted_by() use

EPSS 0.05% · P15
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-37816

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mei: vsc: Fix fortify-panic caused by invalid counted_by() use
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: mei: vsc: Fix fortify-panic caused by invalid counted_by() use gcc 15 honors the __counted_by(len) attribute on vsc_tp_packet.buf[] and the vsc-tp.c code is using this in a wrong way. len does not contain the available size in the buffer, it contains the actual packet length *without* the crc. So as soon as vsc_tp_xfer() tries to add the crc to buf[] the fortify-panic handler gets triggered: [ 80.842193] memcpy: detected buffer overflow: 4 byte write of buffer size 0 [ 80.842243] WARNING: CPU: 4 PID: 272 at lib/string_helpers.c:1032 __fortify_report+0x45/0x50 ... [ 80.843175] __fortify_panic+0x9/0xb [ 80.843186] vsc_tp_xfer.cold+0x67/0x67 [mei_vsc_hw] [ 80.843210] ? seqcount_lockdep_reader_access.constprop.0+0x82/0x90 [ 80.843229] ? lockdep_hardirqs_on+0x7c/0x110 [ 80.843250] mei_vsc_hw_start+0x98/0x120 [mei_vsc] [ 80.843270] mei_reset+0x11d/0x420 [mei] The easiest fix would be to just drop the counted-by but with the exception of the ack buffer in vsc_tp_xfer_helper() which only contains enough room for the packet-header, all other uses of vsc_tp_packet always use a buffer of VSC_TP_MAX_XFER_SIZE bytes for the packet. Instead of just dropping the counted-by, split the vsc_tp_packet struct definition into a header and a full-packet definition and use a fixed size buf[] in the packet definition, this way fortify-source buffer overrun checking still works when enabled.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于缓冲区溢出,可能导致内核崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 566f5ca9768075e453b7b51a397733968df4287d ~ 3e243378f27cc7d11682a3ad720228b0723affa5 -
LinuxLinux 6.8 -

II. Public POCs for CVE-2025-37816

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-37816

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-05-08 · 33 CVEs total

CVE-2025-37817mcb: fix a double free bug in chameleon_parse_gdd()
CVE-2025-37833net/niu: Niu requires MSIX ENTRY_DATA fields touch before entry reads
CVE-2025-37834mm/vmscan: don't try to reclaim hwpoison folio
CVE-2025-37831cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
CVE-2025-37830cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
CVE-2025-37829cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
CVE-2025-37828scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort()
CVE-2025-37826scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()
CVE-2025-37827btrfs: zoned: return EIO on RAID1 block group write pointer mismatch
CVE-2025-37825nvmet: fix out-of-bounds access in nvmet_enable_port
CVE-2025-37823net_sched: hfsc: Fix a potential UAF in hfsc_dequeue() too
CVE-2025-37824tipc: fix NULL pointer dereference in tipc_mon_reinit_self()
CVE-2025-37821sched/eevdf: Fix se->slice being set to U64_MAX and resulting crash
CVE-2025-37822riscv: uprobes: Add missing fence.i after building the XOL buffer
CVE-2025-37820xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()
CVE-2025-37819irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()
CVE-2025-37800driver core: fix potential NULL pointer dereference in dev_uevent()
CVE-2025-37818LoongArch: Return NULL from huge_pte_offset() for invalid PMD
CVE-2025-37815misc: microchip: pci1xxxx: Fix Kernel panic during IRQ handler registration
CVE-2025-37814tty: Require CAP_SYS_ADMIN for all usages of TIOCL_SELMOUSEREPORT

Showing top 20 of 33 CVEs. View all on vendor page → →

IV. Related Vulnerabilities

V. Comments for CVE-2025-37816

No comments yet


Leave a comment