CVE-2025-21834

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21834
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21834.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21834
Downstream
Related
Published
2025-03-06T16:22:35Z
Modified
2025-10-17T21:52:34.228864Z
Summary
seccomp: passthrough uretprobe systemcall without filtering
Details

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

seccomp: passthrough uretprobe systemcall without filtering

When attaching uretprobes to processes running inside docker, the attached process is segfaulted when encountering the retprobe.

The reason is that now that uretprobe is a system call the default seccomp filters in docker block it as they only allow a specific set of known syscalls. This is true for other userspace applications which use seccomp to control their syscall surface.

Since uretprobe is a "kernel implementation detail" system call which is not used by userspace application code directly, it is impractical and there's very little point in forcing all userspace applications to explicitly allow it in order to avoid crashing tracked processes.

Pass this systemcall through seccomp without depending on configuration.

Note: uretprobe is currently only x86_64 and isn't expected to ever be supported in i386.

[kees: minimized changes for easier backporting, tweaked commit log]

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
ff474a78cef5cb5f32be52fe25b78441327a2e7c
Fixed
5a262628f4cf2437d863fe41f9d427177b87664c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ff474a78cef5cb5f32be52fe25b78441327a2e7c
Fixed
fa80018aa5be10c35e9fa896b7b4061a8dce3eed
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ff474a78cef5cb5f32be52fe25b78441327a2e7c
Fixed
cf6cb56ef24410fb5308f9655087f1eddf4452e6

Affected versions

v6.*

v6.10
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
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.10
v6.12.11
v6.12.12
v6.12.13
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
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1
v6.13.2
v6.14-rc1

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5a262628f4cf2437d863fe41f9d427177b87664c",
        "signature_version": "v1",
        "target": {
            "function": "seccomp_is_const_allow",
            "file": "kernel/seccomp.c"
        },
        "digest": {
            "function_hash": "336354257230553115627065534490922628044",
            "length": 1157.0
        },
        "id": "CVE-2025-21834-1d046a5e"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5a262628f4cf2437d863fe41f9d427177b87664c",
        "signature_version": "v1",
        "target": {
            "file": "kernel/seccomp.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "274297953636423936899033863709144022496",
                "78281499534255771599817402992689375689",
                "473726396620818225950518339433041875",
                "309152426020648531067410074948891932385",
                "167910445135410539890229456984592648696",
                "188423696618227479764762725082295155288",
                "318243043011863430499036652806259223226"
            ]
        },
        "id": "CVE-2025-21834-1f225226"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cf6cb56ef24410fb5308f9655087f1eddf4452e6",
        "signature_version": "v1",
        "target": {
            "function": "seccomp_is_const_allow",
            "file": "kernel/seccomp.c"
        },
        "digest": {
            "function_hash": "336354257230553115627065534490922628044",
            "length": 1157.0
        },
        "id": "CVE-2025-21834-2a1f0c12"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fa80018aa5be10c35e9fa896b7b4061a8dce3eed",
        "signature_version": "v1",
        "target": {
            "function": "seccomp_is_const_allow",
            "file": "kernel/seccomp.c"
        },
        "digest": {
            "function_hash": "336354257230553115627065534490922628044",
            "length": 1157.0
        },
        "id": "CVE-2025-21834-3117ef76"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cf6cb56ef24410fb5308f9655087f1eddf4452e6",
        "signature_version": "v1",
        "target": {
            "file": "kernel/seccomp.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "274297953636423936899033863709144022496",
                "78281499534255771599817402992689375689",
                "473726396620818225950518339433041875",
                "309152426020648531067410074948891932385",
                "167910445135410539890229456984592648696",
                "188423696618227479764762725082295155288",
                "318243043011863430499036652806259223226"
            ]
        },
        "id": "CVE-2025-21834-b73f23e3"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fa80018aa5be10c35e9fa896b7b4061a8dce3eed",
        "signature_version": "v1",
        "target": {
            "file": "kernel/seccomp.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "274297953636423936899033863709144022496",
                "78281499534255771599817402992689375689",
                "473726396620818225950518339433041875",
                "309152426020648531067410074948891932385",
                "167910445135410539890229456984592648696",
                "188423696618227479764762725082295155288",
                "318243043011863430499036652806259223226"
            ]
        },
        "id": "CVE-2025-21834-d604cb9a"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.14
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.3