CVE-2025-21641

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21641
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21641.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-21641
Downstream
Published
2025-01-19T10:17:58.351Z
Modified
2025-11-20T07:37:36.309914Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
mptcp: sysctl: blackhole timeout: avoid using current->nsproxy
Details

In the Linux kernel, the following vulnerability has been resolved:

mptcp: sysctl: blackhole timeout: avoid using current->nsproxy

As mentioned in the previous commit, using the 'net' structure via 'current' is not recommended for different reasons:

  • Inconsistency: getting info from the reader's/writer's netns vs only from the opener's netns.

  • current->nsproxy can be NULL in some cases, resulting in an 'Oops' (null-ptr-deref), e.g. when the current task is exiting, as spotted by syzbot [1] using acct(2).

The 'pernet' structure can be obtained from the table->data using container_of().

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
27069e7cb3d1cea9377069266acf19b9cc5ad0ae
Fixed
4c74fbdc5ab95b13945be01e6065940b68222db7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
27069e7cb3d1cea9377069266acf19b9cc5ad0ae
Fixed
92cf7a51bdae24a32c592adcdd59a773ae149289

Affected versions

v6.*

v6.11
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "50322283222408042904436991496404848007",
                "330662345393623450276462579238407552530",
                "33009271392973920657775296684662676088",
                "43838410061291903620447600082491000325"
            ]
        },
        "id": "CVE-2025-21641-5af42227",
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c74fbdc5ab95b13945be01e6065940b68222db7",
        "target": {
            "file": "net/mptcp/ctrl.c"
        }
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 327.0,
            "function_hash": "107472346627341613991864255234944550194"
        },
        "id": "CVE-2025-21641-72e0c9af",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c74fbdc5ab95b13945be01e6065940b68222db7",
        "target": {
            "file": "net/mptcp/ctrl.c",
            "function": "proc_blackhole_detect_timeout"
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.10