CVE-2025-21768

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21768
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21768.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21768
Downstream
Related
Published
2025-02-27T02:18:17Z
Modified
2025-10-17T21:25:23.080871Z
Summary
net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels
Details

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

net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels

Some lwtunnels have a dst cache for post-transformation dst. If the packet destination did not change we may end up recording a reference to the lwtunnel in its own cache, and the lwtunnel state will never be freed.

Discovered by the ioam6.sh test, kmemleak was recently fixed to catch per-cpu memory leaks. I'm not sure if rpl and seg6 can actually hit this, but in principle I don't see why not.

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
6c8702c60b88651072460f3f4026c7dfe2521d12
Fixed
5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6c8702c60b88651072460f3f4026c7dfe2521d12
Fixed
4c0f200c7d06fedddde82209c099014d63f4a6c0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6c8702c60b88651072460f3f4026c7dfe2521d12
Fixed
92191dd1073088753821b862b791dcc83e558e07

Affected versions

v4.*

v4.10
v4.10-rc1
v4.10-rc2
v4.10-rc3
v4.10-rc4
v4.10-rc5
v4.10-rc6
v4.10-rc7
v4.10-rc8
v4.11
v4.11-rc1
v4.11-rc2
v4.11-rc3
v4.11-rc4
v4.11-rc5
v4.11-rc6
v4.11-rc7
v4.11-rc8
v4.12
v4.12-rc1
v4.12-rc2
v4.12-rc3
v4.12-rc4
v4.12-rc5
v4.12-rc6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8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "id": "CVE-2025-21768-0094c5e1",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "280690303140345657236225507030147640859",
                "228504725995135750280460012106525341662",
                "192976896152847541284817734770178014747",
                "141391205814793284014287905048516954594",
                "252714960796057922653559807989092474712",
                "15322385651258225508895086556143028367"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/ioam6_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0f200c7d06fedddde82209c099014d63f4a6c0"
    },
    {
        "id": "CVE-2025-21768-0264516f",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "283072418055132943891772203735559189842",
                "95763414589932661340808920215615748361",
                "71378952532805857753656074003113399355",
                "70214460682978976996958534802752849648",
                "88988575627839688942246522614559121417",
                "215455324510682821853191299222604326390"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/rpl_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a"
    },
    {
        "id": "CVE-2025-21768-0ce39e95",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "67618540442232960566787045417434416721",
            "length": 1045.0
        },
        "target": {
            "file": "net/ipv6/rpl_iptunnel.c",
            "function": "rpl_output"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92191dd1073088753821b862b791dcc83e558e07"
    },
    {
        "id": "CVE-2025-21768-2cb45262",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "294324234399964551513411673132999104057",
                "95763414589932661340808920215615748361",
                "71378952532805857753656074003113399355",
                "70214460682978976996958534802752849648",
                "88988575627839688942246522614559121417",
                "215455324510682821853191299222604326390"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/rpl_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92191dd1073088753821b862b791dcc83e558e07"
    },
    {
        "id": "CVE-2025-21768-2e9151a8",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "294324234399964551513411673132999104057",
                "135246341391318862416115336076931916875",
                "205475050419444399562093401343376574448",
                "167162748505365435990370043431629293474",
                "295592162547470626667005225765750640484",
                "215455324510682821853191299222604326390"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/seg6_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92191dd1073088753821b862b791dcc83e558e07"
    },
    {
        "id": "CVE-2025-21768-588b058c",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "137925402209720419549207231915977479266",
            "length": 1045.0
        },
        "target": {
            "file": "net/ipv6/rpl_iptunnel.c",
            "function": "rpl_output"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0f200c7d06fedddde82209c099014d63f4a6c0"
    },
    {
        "id": "CVE-2025-21768-71885824",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "120445356919749025277127757733524595544",
            "length": 1900.0
        },
        "target": {
            "file": "net/ipv6/ioam6_iptunnel.c",
            "function": "ioam6_output"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92191dd1073088753821b862b791dcc83e558e07"
    },
    {
        "id": "CVE-2025-21768-7b02962f",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "339712289370370456289174317655910282268",
            "length": 1212.0
        },
        "target": {
            "file": "net/ipv6/seg6_iptunnel.c",
            "function": "seg6_output_core"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0f200c7d06fedddde82209c099014d63f4a6c0"
    },
    {
        "id": "CVE-2025-21768-857918fb",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "283072418055132943891772203735559189842",
                "135246341391318862416115336076931916875",
                "205475050419444399562093401343376574448",
                "167162748505365435990370043431629293474",
                "295592162547470626667005225765750640484",
                "215455324510682821853191299222604326390"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/seg6_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0f200c7d06fedddde82209c099014d63f4a6c0"
    },
    {
        "id": "CVE-2025-21768-8c219d92",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "120500994527312567668649291651010131589",
            "length": 1212.0
        },
        "target": {
            "file": "net/ipv6/seg6_iptunnel.c",
            "function": "seg6_output_core"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92191dd1073088753821b862b791dcc83e558e07"
    },
    {
        "id": "CVE-2025-21768-9a08833a",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "280690303140345657236225507030147640859",
                "228504725995135750280460012106525341662",
                "192976896152847541284817734770178014747",
                "141391205814793284014287905048516954594",
                "252714960796057922653559807989092474712",
                "15322385651258225508895086556143028367"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/ioam6_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a"
    },
    {
        "id": "CVE-2025-21768-aa355364",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "213566461009966369807571420835959361290",
            "length": 1874.0
        },
        "target": {
            "file": "net/ipv6/ioam6_iptunnel.c",
            "function": "ioam6_output"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0f200c7d06fedddde82209c099014d63f4a6c0"
    },
    {
        "id": "CVE-2025-21768-bc95f01a",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "339712289370370456289174317655910282268",
            "length": 1212.0
        },
        "target": {
            "file": "net/ipv6/seg6_iptunnel.c",
            "function": "seg6_output_core"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a"
    },
    {
        "id": "CVE-2025-21768-bf457430",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "137925402209720419549207231915977479266",
            "length": 1045.0
        },
        "target": {
            "file": "net/ipv6/rpl_iptunnel.c",
            "function": "rpl_output"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a"
    },
    {
        "id": "CVE-2025-21768-c6fdc190",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "49723072640728276608391116043767620534",
                "228504725995135750280460012106525341662",
                "192976896152847541284817734770178014747",
                "141391205814793284014287905048516954594",
                "252714960796057922653559807989092474712",
                "15322385651258225508895086556143028367"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/ioam6_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92191dd1073088753821b862b791dcc83e558e07"
    },
    {
        "id": "CVE-2025-21768-c79527f3",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "283072418055132943891772203735559189842",
                "95763414589932661340808920215615748361",
                "71378952532805857753656074003113399355",
                "70214460682978976996958534802752849648",
                "88988575627839688942246522614559121417",
                "215455324510682821853191299222604326390"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/rpl_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c0f200c7d06fedddde82209c099014d63f4a6c0"
    },
    {
        "id": "CVE-2025-21768-cc6e0782",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "213566461009966369807571420835959361290",
            "length": 1874.0
        },
        "target": {
            "file": "net/ipv6/ioam6_iptunnel.c",
            "function": "ioam6_output"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a"
    },
    {
        "id": "CVE-2025-21768-d3bea36b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "283072418055132943891772203735559189842",
                "135246341391318862416115336076931916875",
                "205475050419444399562093401343376574448",
                "167162748505365435990370043431629293474",
                "295592162547470626667005225765750640484",
                "215455324510682821853191299222604326390"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "net/ipv6/seg6_iptunnel.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ab11a4e219e93b8b31a27f8ec98d42afadd8b7a"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
6.12.16
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.4