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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-40022— crypto: af_alg - Fix incorrect boolean values in af_alg_ctx

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于af_alg_ctx结构中布尔值使用不当,可能导致数据转换错误。

AI Predicted 3.3 Difficulty: Hard EPSS 0.24% · P14

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 11

VendorProduct Version RangeStatus
Linux Linux 0f28c4adbc4a97437874c9b669fd7958a8c6d6ce< 3a21698ace915a445bce2d0dcfc84b6d2199baf7 affected
e4c1ec11132ec466f7362a95f36a506ce4dc08c9< d382d6daf0184490f366562469a5673f65ee2662 affected
1f323a48e9b5ebfe6dc7d130fdf5c3c0e92a07c8< 54506c6335690f4ef1b9f154e34f5a604c72c1ed affected
7c4491b5644e3a3708f3dbd7591be0a570135b84< 8703940bd30b5ad94408d28d7192db2491cd3592 affected
9aee87da5572b3a14075f501752e209801160d3d< 316b090c2fee964c307a634fecc7df269664b158 affected
45bcf60fe49b37daab1acee57b27211ad1574042< fbe96bd25423e61273d8831e995260b429d850b6 affected
1b34cbbf4f011a121ef7b2d7d6e6920a036d5285< d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb affected
6.1.154< 6.1.155 affected
… +3 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-40022

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
crypto: af_alg - Fix incorrect boolean values in af_alg_ctx
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: crypto: af_alg - Fix incorrect boolean values in af_alg_ctx Commit 1b34cbbf4f01 ("crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg") changed some fields from bool to 1-bit bitfields of type u32. However, some assignments to these fields, specifically 'more' and 'merge', assign values greater than 1. These relied on C's implicit conversion to bool, such that zero becomes false and nonzero becomes true. With a 1-bit bitfields of type u32 instead, mod 2 of the value is taken instead, resulting in 0 being assigned in some cases when 1 was intended. Fix this by restoring the bool type.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于af_alg_ctx结构中布尔值使用不当,可能导致数据转换错误。
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

Vendor Product Affected Versions CPE Subscribe
Linux Linux 0f28c4adbc4a97437874c9b669fd7958a8c6d6ce ~ 3a21698ace915a445bce2d0dcfc84b6d2199baf7 -
Linux Linux 6.1.154 ~ 6.1.155 -

II. Public POCs for CVE-2025-40022

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-40022

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-10-24 · 8 CVEs total

CVE-2023-53733 7.8 HIGH net: sched: cls_u32: Undo tcf_bind_filter if u32_replace_hw_knode
CVE-2025-40018 7.8 HIGH ipvs: Defer ip_vs_ftp unregister during netns cleanup
CVE-2025-40024 7.8 HIGH vhost: Take a reference on the task in struct vhost_task.
CVE-2025-40019 crypto: essiv - Check ssize for decryption and in-place encryption
CVE-2025-40020 can: peak_usb: fix shift-out-of-bounds issue
CVE-2025-40021 tracing: dynevent: Add a missing lockdown check on dynevent
CVE-2025-40023 drm/xe/vf: Don't expose sysfs attributes not applicable for VFs

IV. Related Vulnerabilities

V. Comments for CVE-2025-40022

No comments yet


Leave a comment