CVE-2025-40022

Aliases:UBUNTU-CVE-2025-40022DEBIAN-CVE-2025-40022
Advisory lineage Upstream: 0 Downstream: 18
Deferred
Published: 24 Oct 2025, 12:24
Last modified:08 Sept 2026, 08:42

Vulnerability Summary

Overall Risk (default)
low
19/100
CVSS Score
4.8 MEDIUM
4.0 (osv_ubuntu)
EPSS Score
0.22% LOW
0% probability +0.17%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

24 Oct 2025, 12:24
Published
Vulnerability first disclosed
08 Sept 2026, 08:42
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0MEDIUMScore: 4.8CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS Trends

Current EPSS score: 0.22% Percentile: 13%

Affected Systems

  • debianlinux

    < 5.10.247-1 | < 6.1.158-1 | < 6.12.57-1 | < 6.16.10-1

  • debianlinux-6.1

    < 6.1.158-1~deb11u1

  • ubuntulinux

    < 6.17.0-6.6

  • ubuntulinux-allwinner-5.19

    all

  • ubuntulinux-aws

    < 6.17.0-1003.3

  • ubuntulinux-aws-5.0

    all

  • ubuntulinux-aws-5.11

    all

  • ubuntulinux-aws-5.13

    all

  • ubuntulinux-aws-5.19

    all

  • ubuntulinux-aws-5.3

    all

  • ubuntulinux-aws-5.8

    all

  • ubuntulinux-aws-6.2

    all

  • ubuntulinux-aws-6.5

    all

  • ubuntulinux-azure

    all | < 6.17.0-1006.6

  • ubuntulinux-azure-5.11

    all

  • ubuntulinux-azure-5.13

    all

  • ubuntulinux-azure-5.19

    all

  • ubuntulinux-azure-5.3

    all

  • ubuntulinux-azure-5.8

    all

  • ubuntulinux-azure-6.11

    all

  • ubuntulinux-azure-6.2

    all

  • ubuntulinux-azure-6.5

    all

  • ubuntulinux-azure-edge

    all

  • ubuntulinux-azure-fde

    all | all

  • ubuntulinux-azure-fde-5.19

    all

  • ubuntulinux-azure-fde-6.2

    all

  • ubuntulinux-bluefield

    all

  • ubuntulinux-gcp

    all | < 6.17.0-1003.3

  • ubuntulinux-gcp-5.11

    all

  • ubuntulinux-gcp-5.13

    all

  • ubuntulinux-gcp-5.19

    all

  • ubuntulinux-gcp-5.3

    all

  • ubuntulinux-gcp-5.8

    all

  • ubuntulinux-gcp-6.11

    all

  • ubuntulinux-gcp-6.2

    all

  • ubuntulinux-gcp-6.5

    all

  • ubuntulinux-gke

    all

  • ubuntulinux-gke-4.15

    all

  • ubuntulinux-gke-5.15

    all

  • ubuntulinux-gke-5.4

    all

  • ubuntulinux-gkeop

    all

  • ubuntulinux-gkeop-5.15

    all

  • ubuntulinux-gkeop-5.4

    all

  • ubuntulinux-hwe

    all

  • ubuntulinux-hwe-5.11

    all

  • ubuntulinux-hwe-5.13

    all

  • ubuntulinux-hwe-5.19

    all

  • ubuntulinux-hwe-5.8

    all

  • ubuntulinux-hwe-6.11

    all

  • ubuntulinux-hwe-6.2

    all

Showing first 50 affected entries in server-rendered view.

References (13)