CVE-2024-40954
published high CVSS 3.1 · 7.8net: do not leave a dangling sk pointer, when socket creation fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 78e4aa528a7b1204219d808310524344f627d069 · c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 893eeba94c40d513cd0fe6539330ebdaea208c0e · c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 454c454ed645fed051216b79622f7cb69c1638f5 · c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9 · c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.96 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-053 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-836 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultppc64le | Advisory build | 10-150400.9.8.1 | SUSE-SU-2024:3793-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultppc64le | Advisory build | 11-150400.9.8.1 | SUSE-SU-2024:4234-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultppc64le | Advisory build | 12-150400.9.8.1 | SUSE-SU-2025:0107-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultppc64le | Advisory build | 13-150400.9.8.1 | SUSE-SU-2025:0261-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaults390x | Advisory build | 10-150400.9.8.1 | SUSE-SU-2024:3793-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaults390x | Advisory build | 11-150400.9.8.1 | SUSE-SU-2024:4234-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaults390x | Advisory build | 12-150400.9.8.1 | SUSE-SU-2025:0107-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaults390x | Advisory build | 13-150400.9.8.1 | SUSE-SU-2025:0261-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultx86_64 | Advisory build | 10-150400.9.8.1 | SUSE-SU-2024:3793-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultx86_64 | Advisory build | 11-150400.9.8.1 | SUSE-SU-2024:4234-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultx86_64 | Advisory build | 12-150400.9.8.1 | SUSE-SU-2025:0107-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_108-defaultx86_64 | Advisory build | 13-150400.9.8.1 | SUSE-SU-2025:0261-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultppc64le | Advisory build | 10-150400.9.6.1 | SUSE-SU-2025:0109-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultppc64le | Advisory build | 11-150400.9.6.1 | SUSE-SU-2025:0251-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultppc64le | Advisory build | 8-150400.9.6.1 | SUSE-SU-2024:3815-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultppc64le | Advisory build | 9-150400.9.6.1 | SUSE-SU-2024:4266-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaults390x | Advisory build | 10-150400.9.6.1 | SUSE-SU-2025:0109-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaults390x | Advisory build | 11-150400.9.6.1 | SUSE-SU-2025:0251-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaults390x | Advisory build | 8-150400.9.6.1 | SUSE-SU-2024:3815-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaults390x | Advisory build | 9-150400.9.6.1 | SUSE-SU-2024:4266-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultx86_64 | Advisory build | 10-150400.9.6.1 | SUSE-SU-2025:0109-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultx86_64 | Advisory build | 11-150400.9.6.1 | SUSE-SU-2025:0251-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultx86_64 | Advisory build | 8-150400.9.6.1 | SUSE-SU-2024:3815-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_111-defaultx86_64 | Advisory build | 9-150400.9.6.1 | SUSE-SU-2024:4266-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultppc64le | Advisory build | 10-150400.9.8.1 | SUSE-SU-2025:0150-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultppc64le | Advisory build | 11-150400.9.8.1 | SUSE-SU-2025:0248-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultppc64le | Advisory build | 8-150400.9.8.1 | SUSE-SU-2024:3851-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultppc64le | Advisory build | 9-150400.9.8.1 | SUSE-SU-2024:4235-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaults390x | Advisory build | 10-150400.9.8.1 | SUSE-SU-2025:0150-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaults390x | Advisory build | 11-150400.9.8.1 | SUSE-SU-2025:0248-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaults390x | Advisory build | 8-150400.9.8.1 | SUSE-SU-2024:3851-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaults390x | Advisory build | 9-150400.9.8.1 | SUSE-SU-2024:4235-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultx86_64 | Advisory build | 10-150400.9.8.1 | SUSE-SU-2025:0150-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultx86_64 | Advisory build | 11-150400.9.8.1 | SUSE-SU-2025:0248-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultx86_64 | Advisory build | 8-150400.9.8.1 | SUSE-SU-2024:3851-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_116-defaultx86_64 | Advisory build | 9-150400.9.8.1 | SUSE-SU-2024:4235-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultppc64le | Advisory build | 10-150400.9.6.1 | SUSE-SU-2025:0264-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultppc64le | Advisory build | 6-150400.9.6.1 | SUSE-SU-2024:3700-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultppc64le | Advisory build | 7-150400.9.6.1 | SUSE-SU-2024:3806-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultppc64le | Advisory build | 8-150400.9.6.1 | SUSE-SU-2024:4236-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultppc64le | Advisory build | 9-150400.9.6.1 | SUSE-SU-2025:0124-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaults390x | Advisory build | 10-150400.9.6.1 | SUSE-SU-2025:0264-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaults390x | Advisory build | 6-150400.9.6.1 | SUSE-SU-2024:3700-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaults390x | Advisory build | 7-150400.9.6.1 | SUSE-SU-2024:3806-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaults390x | Advisory build | 8-150400.9.6.1 | SUSE-SU-2024:4236-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaults390x | Advisory build | 9-150400.9.6.1 | SUSE-SU-2025:0124-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultx86_64 | Advisory build | 10-150400.9.6.1 | SUSE-SU-2025:0264-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultx86_64 | Advisory build | 6-150400.9.6.1 | SUSE-SU-2024:3700-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultx86_64 | Advisory build | 7-150400.9.6.1 | SUSE-SU-2024:3806-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultx86_64 | Advisory build | 8-150400.9.6.1 | SUSE-SU-2024:4236-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_119-defaultx86_64 | Advisory build | 9-150400.9.6.1 | SUSE-SU-2025:0124-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultppc64le | Advisory build | 5-150400.9.6.1 | SUSE-SU-2024:3780-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultppc64le | Advisory build | 6-150400.9.6.1 | SUSE-SU-2024:4275-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultppc64le | Advisory build | 7-150400.9.6.1 | SUSE-SU-2025:0110-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultppc64le | Advisory build | 8-150400.9.6.1 | SUSE-SU-2025:0249-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaults390x | Advisory build | 5-150400.9.6.1 | SUSE-SU-2024:3780-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaults390x | Advisory build | 6-150400.9.6.1 | SUSE-SU-2024:4275-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaults390x | Advisory build | 7-150400.9.6.1 | SUSE-SU-2025:0110-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaults390x | Advisory build | 8-150400.9.6.1 | SUSE-SU-2025:0249-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultx86_64 | Advisory build | 5-150400.9.6.1 | SUSE-SU-2024:3780-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultx86_64 | Advisory build | 6-150400.9.6.1 | SUSE-SU-2024:4275-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultx86_64 | Advisory build | 7-150400.9.6.1 | SUSE-SU-2025:0110-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_122-defaultx86_64 | Advisory build | 8-150400.9.6.1 | SUSE-SU-2025:0249-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultppc64le | Advisory build | 2-150400.9.6.1 | SUSE-SU-2024:3707-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultppc64le | Advisory build | 3-150400.9.6.1 | SUSE-SU-2024:3836-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultppc64le | Advisory build | 4-150400.9.6.1 | SUSE-SU-2024:4262-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultppc64le | Advisory build | 5-150400.9.6.1 | SUSE-SU-2025:0111-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaults390x | Advisory build | 2-150400.9.6.1 | SUSE-SU-2024:3707-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaults390x | Advisory build | 3-150400.9.6.1 | SUSE-SU-2024:3836-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaults390x | Advisory build | 4-150400.9.6.1 | SUSE-SU-2024:4262-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaults390x | Advisory build | 5-150400.9.6.1 | SUSE-SU-2025:0111-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultx86_64 | Advisory build | 2-150400.9.6.1 | SUSE-SU-2024:3707-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultx86_64 | Advisory build | 3-150400.9.6.1 | SUSE-SU-2024:3836-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultx86_64 | Advisory build | 4-150400.9.6.1 | SUSE-SU-2024:4262-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_125-defaultx86_64 | Advisory build | 5-150400.9.6.1 | SUSE-SU-2025:0111-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_88-defaultppc64le | Advisory build | 14-150400.2.1 | SUSE-SU-2024:3706-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_88-defaults390x | Advisory build | 14-150400.2.1 | SUSE-SU-2024:3706-1 |
| SUSE / openSUSE | SLE-15-SP4 | kernel-livepatch-5_14_21-150400_24_88-defaultx86_64 | Advisory build | 14-150400.2.1 | SUSE-SU-2024:3706-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_35-rtx86_64 | Advisory build | 10-150500.11.8.1 | SUSE-SU-2024:3829-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_35-rtx86_64 | Advisory build | 11-150500.11.8.1 | SUSE-SU-2024:4122-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_38-rtx86_64 | Advisory build | 8-150500.11.6.1 | SUSE-SU-2024:3837-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_38-rtx86_64 | Advisory build | 9-150500.11.6.1 | SUSE-SU-2024:4123-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_47-rtx86_64 | Advisory build | 8-150500.11.6.1 | SUSE-SU-2024:3830-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_47-rtx86_64 | Advisory build | 9-150500.11.6.1 | SUSE-SU-2024:4124-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_52-rtx86_64 | Advisory build | 6-150500.11.8.1 | SUSE-SU-2024:3831-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_52-rtx86_64 | Advisory build | 7-150500.11.8.1 | SUSE-SU-2024:4125-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_58-rtx86_64 | Advisory build | 5-150500.11.6.1 | SUSE-SU-2024:3833-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_58-rtx86_64 | Advisory build | 6-150500.11.6.1 | SUSE-SU-2024:4127-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_61-rtx86_64 | Advisory build | 3-150500.11.6.1 | SUSE-SU-2024:3856-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_13_61-rtx86_64 | Advisory build | 4-150500.11.6.1 | SUSE-SU-2024:4128-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_36-defaultppc64le | Advisory build | 12-150500.2.1 | SUSE-SU-2024:3706-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_36-defaults390x | Advisory build | 12-150500.2.1 | SUSE-SU-2024:3706-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_36-defaultx86_64 | Advisory build | 12-150500.2.1 | SUSE-SU-2024:3706-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_49-defaultppc64le | Advisory build | 10-150500.11.8.1 | SUSE-SU-2024:3852-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_49-defaultppc64le | Advisory build | 11-150500.11.8.1 | SUSE-SU-2024:4218-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_49-defaultppc64le | Advisory build | 12-150500.11.8.1 | SUSE-SU-2025:0158-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_49-defaultppc64le | Advisory build | 13-150500.11.8.1 | SUSE-SU-2025:0266-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_49-defaults390x | Advisory build | 10-150500.11.8.1 | SUSE-SU-2024:3852-1 |
| SUSE / openSUSE | SLE-15-SP5 | kernel-livepatch-5_14_21-150500_55_49-defaults390x | Advisory build | 11-150500.11.8.1 | SUSE-SU-2024:4218-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: net: do not leave a dangling sk pointer, when socket creation fails It is possible to trigger a use-after-free by: * attaching an fentry probe to __sock_release() and the probe calling the bpf_get_socket_cookie() helper * running traceroute -I 1.1.1.1 on a freshly booted VM A KASAN enabled kernel will log something like below (decoded and stripped): ================================================================== BUG: KASAN: slab-use-after-free in __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) Read of size 8 at addr ffff888007110dd8 by task traceroute/299 CPU: 2 PID: 299 Comm: traceroute Tainted: G E 6.10.0-rc2+ #2 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: <TASK> dump_stack_lvl (lib/dump_stack.c:117 (discriminator 1)) print_report (mm/kasan/report.c:378 mm/kasan/report.c:488) ? __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) kasan_report (mm/kasan/report.c:603) ? __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) kasan_check_range (mm/kasan/generic.c:183 mm/kasan/generic.c:189) __sock_gen_cookie (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-instrumented.h:1611 net/core/sock_diag.c:29) bpf_get_socket_ptr_cookie (./arch/x86/include/asm/preempt.h:94 ./include/linux/sock_diag.h:42 net/core/filter.c:5094 net/core/filter.c:5092) bpf_prog_875642cf11f1d139___sock_release+0x6e/0x8e bpf_trampoline_6442506592+0x47/0xaf __sock_release (net/socket.c:652) __sock_create (net/socket.c:1601) ... Allocated by task 299 on cpu 2 at 78.328492s: kasan_save_stack (mm/kasan/common.c:48) kasan_save_track (mm/kasan/common.c:68) __kasan_slab_alloc (mm/kasan/common.c:312 mm/kasan/common.c:338) kmem_cache_alloc_noprof (mm/slub.c:3941 mm/slub.c:4000 mm/slub.c:4007) sk_prot_alloc (net/core/sock.c:2075) sk_alloc (net/core/sock.c:2134) inet_create (net/ipv4/af_inet.c:327 net/ipv4/af_inet.c:252) __sock_create (net/socket.c:1572) __sys_socket (net/socket.c:1660 net/socket.c:1644 net/socket.c:1706) __x64_sys_socket (net/socket.c:1718) do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Freed by task 299 on cpu 2 at 78.328502s: kasan_save_stack (mm/kasan/common.c:48) kasan_save_track (mm/kasan/common.c:68) kasan_save_free_info (mm/kasan/generic.c:582) poison_slab_object (mm/kasan/common.c:242) __kasan_slab_free (mm/kasan/common.c:256) kmem_cache_free (mm/slub.c:4437 mm/slub.c:4511) __sk_destruct (net/core/sock.c:2117 net/core/sock.c:2208) inet_create (net/ipv4/af_inet.c:397 net/ipv4/af_inet.c:252) __sock_create (net/socket.c:1572) __sys_socket (net/socket.c:1660 net/socket.c:1644 net/socket.c:1706) __x64_sys_socket (net/socket.c:1718) do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Fix this by clearing the struct socket reference in sk_common_release() to cover all protocol families create functions, which may already attached the reference to the sk object with sock_init_data().
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The dangling pointer is created by the local `socket(2)` syscall reaching `__sock_create()` → `inet_create()` and failing after `sock_init_data()`; no packet or remote peer data is involved in reaching the vulnerable code. The dereference likewise happens in the syscalling task's own context. AC:L - `ping_init_sock()` returns -EACCES for every user under the kernel-default empty `ping_group_range` ([1,0]), so `socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP)` frees `sk` and leaves `sock->sk` dangling deterministically on every attempt, with no race to win and no memory layout outside the attacker's influence. On a target running the socket-lifecycle eBPF instrumentation that constitutes the vulnerable configuration, the freed-object access follows unconditionally. PR:L - Any ordinary unprivileged local account — including an unprivileged container tenant — can issue the failing `socket()` call; there is no capability check, no user-namespace requirement, and even `traceroute` run by a normal user triggers it. The privileges needed to install the tracing probe belong to the host's monitoring stack, not to the attacker. UI:N - The attacker performs the entire sequence with a single syscall from their own process; no other user must open a file, mount anything, or take any action. S:U - The freed `struct sock` and the corrupting access are both inside the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - This is a slab use-after-free read of the freed `struct sock` (`atomic64_read(&sk->sk_cookie)` at a controllable offset into a reallocated object), and the value read is returned to the reader — a UAF read of kernel heap contents that can disclose whatever has been sprayed into the reclaimed slot. I:H - `__sock_gen_cookie()` does not merely read: with `sk_cookie == 0` it performs an `atomic64_cmpxchg()`, writing 8 bytes into the freed object, so a reallocated victim structure occupying that slot is corrupted at a fixed offset. A use-after-free write into sprayed heap memory is a real corruption primitive with control-flow-hijack potential. A:H - The use-after-free reliably produces KASAN slab-use-after-free reports and, on a production kernel, corrupts arbitrary reclaimed slab objects, causing oopses and panics; the trigger can be repeated in a tight loop by an unprivileged user.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 78e4aa528a7b1204219d808310524344f627d069 (affected · git)c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 893eeba94c40d513cd0fe6539330ebdaea208c0e (affected · git)c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 454c454ed645fed051216b79622f7cb69c1638f5 (affected · git)c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9 (affected · git)c5dbb89fc2ac013afe67b9e4fcb3743c02b567cd to < 6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.12 (affected)0 to < 5.12 (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.96 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/454c454ed645fed051216b79622f7cb69c1638f5
- https://git.kernel.org/stable/c/5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9
- https://git.kernel.org/stable/c/6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2
- https://git.kernel.org/stable/c/78e4aa528a7b1204219d808310524344f627d069
- https://git.kernel.org/stable/c/893eeba94c40d513cd0fe6539330ebdaea208c0e
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
net: do not leave a dangling sk pointer, when socket creation fails
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a67efb28b17b697bb3d74fda50e1de1aba888548e1fb396e0cff37e73f60868c
- Ingested
- 23 Sep 2026, 08:26:02 UTC
- Source record
- Official CVE record