Updated: 2024-12-30
CWE: CWE-667
Description:
In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Prevent lock inversion deadlock in map delete elem syzkaller started using corpuses where a BPF tracing program deletes elements from a sockmap/sockhash map. Because BPF tracing programs can be invoked from any interrupt context, locks taken during a map_delete_elem operation must be hardirq-safe. Otherwise a deadlock due to lock inversion is possible, as reported by lockdep: CPU0 CPU1 ---- ---- lock(&htab->buckets[i].lock); local_irq_disable(); lock(&host->lock); lock(&htab->buckets[i].lock); <Interrupt> lock(&host->lock); Locks in sockmap are hardirq-unsafe by design. We expects elements to be deleted from sockmap/sockhash only in task (normal) context with interrupts enabled, or in softirq context. Detect when map_delete_elem operation is invoked from a context which is _not_ hardirq-unsafe, that is interrupts are disabled, and bail out with an error. Note that map updates are not affected by this issue. BPF verifier does not allow updating sockmap/sockhash from a BPF tracing program today.
CVSS3: 5.5
OS | Vendor version | Errata |
---|---|---|
Ubuntu 20.04 | 5.4.0-189.209 | USN-6896-1 |
Ubuntu 20.04 AWS | 5.4.0-1128.138 | USN-6896-5 |
Ubuntu 20.04 Azure | 5.4.0-1133.140 | USN-6896-1 |
Ubuntu 22.04 | 5.15.0-116.126 | USN-6898-1 |
Ubuntu 22.04 AWS | 5.15.0-1065.71 | USN-6898-3 |
Ubuntu 22.04 Azure | 5.15.0-1068.77 | USN-6917-1 |
RHEL 9 | 5.14.0-427.37.1.el9_4 | RHSA-2024:6997 |
Oracle Linux 9 | 5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
Ubuntu 20.04 HWE AWS | 5.15.0-1065.71~20.04.1 | USN-6898-4 |
Ubuntu 20.04 HWE Azure | 5.15.0-1068.77~20.04.1 | USN-6917-1 |
Ubuntu 20.04 GCP | 5.4.0-1132.141 | USN-6896-1 |
Rocky Linux 9 | 5.14.0-427.37.1.el9_4 | RLSA-2024:6997 |
AlmaLinux 9 | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
Ubuntu 24.04 | 6.8.0-38.38 | USN-6893-1 |
OS | Original kernel version | State |
---|---|---|
Ubuntu 20.04 | |
In Progress |
Ubuntu 20.04 AWS | |
Planned |
Ubuntu 20.04 Azure | |
In Progress |
Ubuntu 22.04 |
5.15.0-27.28
show all
hide all
5.15.0-33.34
5.15.0-37.39
5.15.0-39.42
5.15.0-25.25
5.15.0-28.29
5.15.0-29.30
5.15.0-30.31
5.15.0-41.44
5.15.0-43.46
5.15.0-46.49
5.15.0-35.36
5.15.0-47.51
5.15.0-48.54
5.15.0-40.43
5.15.0-50.56
5.15.0-52.58
5.15.0-53.59
5.15.0-56.62
5.15.0-54.60
5.15.0-57.63
5.15.0-58.64
5.15.0-60.66
5.15.0-67.74
5.15.0-69.76
5.15.0-70.77
5.15.0-71.78
5.15.0-72.79
5.15.0-68.75
5.15.0-73.80
5.15.0-75.82
5.15.0-76.83
5.15.0-78.85
5.15.0-79.86
5.15.0-82.91
5.15.0-83.92
5.15.0-84.93
5.15.0-86.96
5.15.0-74.81
5.15.0-87.97
5.15.0-88.98
5.15.0-89.99
5.15.0-91.101
5.15.0-92.102
5.15.0-94.104
5.15.0-97.107
5.15.0-100.110
5.15.0-101.111
5.15.0-102.112
5.15.0-105.115
5.15.0-106.116
5.15.0-107.117
5.15.0-112.122
5.15.0-113.123
|
Released |
Ubuntu 22.04 AWS |
5.15.0-1005.7
show all
hide all
5.15.0-1008.10
5.15.0-1011.14
5.15.0-1013.17
5.15.0-1015.19
5.15.0-1017.21
5.15.0-1009.11
5.15.0-1020.24
5.15.0-1021.25
5.15.0-1022.26
5.15.0-1023.27
5.15.0-1026.30
5.15.0-1004.6
5.15.0-1014.18
5.15.0-1018.22
5.15.0-1024.29
5.15.0-1027.31
5.15.0-1028.32
5.15.0-1030.34
5.15.0-1031.35
5.15.0-1033.37
5.15.0-1034.38
5.15.0-1035.39
5.15.0-1036.40
5.15.0-1032.36
5.15.0-1037.41
5.15.0-1038.43
5.15.0-1039.44
5.15.0-1040.45
5.15.0-1042.47
5.15.0-1043.48
5.15.0-1044.49
5.15.0-1045.50
5.15.0-1047.52
5.15.0-1048.53
5.15.0-1049.54
5.15.0-1050.55
5.15.0-1051.56
5.15.0-1052.57
5.15.0-1053.58
5.15.0-1055.60
5.15.0-1056.61
5.15.0-1057.63
5.15.0-1060.66
5.15.0-1061.67
5.15.0-1062.68
5.15.0-1063.69
5.15.0-1064.70
|
Released |
Ubuntu 22.04 Azure |
5.15.0-1005.6
show all
hide all
5.15.0-1007.8
5.15.0-1010.12
5.15.0-1012.15
5.15.0-1014.17
5.15.0-1017.20
5.15.0-1008.9
5.15.0-1019.24
5.15.0-1020.25
5.15.0-1021.26
5.15.0-1022.27
5.15.0-1003.4
5.15.0-1013.16
5.15.0-1023.29
5.15.0-1029.36
5.15.0-1024.30
5.15.0-1034.41
5.15.0-1035.42
5.15.0-1036.43
5.15.0-1037.44
5.15.0-1038.45
5.15.0-1039.46
5.15.0-1040.47
5.15.0-1041.48
5.15.0-1042.49
5.15.0-1045.52
5.15.0-1046.53
5.15.0-1047.54
5.15.0-1049.56
5.15.0-1044.51
5.15.0-1050.57
5.15.0-1051.59
5.15.0-1052.60
5.15.0-1053.61
5.15.0-1054.62
5.15.0-1056.64
5.15.0-1057.65
5.15.0-1058.66
5.15.0-1059.67
5.15.0-1060.69
5.15.0-1061.70
5.15.0-1063.72
5.15.0-1064.73
5.15.0-1066.75
5.15.0-1067.76
|
Released |
RHEL 9 |
5.14.0-70.17.1.el9_0
show all
hide all
5.14.0-70.22.1.el9_0
5.14.0-70.5.1.el9_0
5.14.0-70.13.1.el9_0
5.14.0-70.26.1.el9_0
5.14.0-70.30.1.el9_0
5.14.0-162.6.1.el9_1
5.14.0-162.12.1.el9_1
5.14.0-162.18.1.el9_1
5.14.0-162.22.2.el9_1
5.14.0-162.23.1.el9_1
5.14.0-284.11.1.el9_2
5.14.0-284.18.1.el9_2
5.14.0-284.25.1.el9_2
5.14.0-284.30.1.el9_2
5.14.0-362.8.1.el9_3
5.14.0-362.13.1.el9_3
5.14.0-362.18.1.el9_3
5.14.0-362.24.1.el9_3
5.14.0-427.13.1.el9_4
5.14.0-427.16.1.el9_4
5.14.0-427.18.1.el9_4
5.14.0-427.20.1.el9_4
5.14.0-427.22.1.el9_4
5.14.0-427.24.1.el9_4
5.14.0-427.26.1.el9_4
5.14.0-427.28.1.el9_4
5.14.0-427.31.1.el9_4
5.14.0-427.33.1.el9_4
5.14.0-427.35.1.el9_4
|
Released |
Oracle Linux 9 |
5.14.0-70.13.1.0.3.el9_0
show all
hide all
5.14.0-70.17.1.0.1.el9_0
5.14.0-70.22.1.0.1.el9_0
5.14.0-70.26.1.0.1.el9_0
5.14.0-162.6.1.el9_1
5.14.0-284.11.1.el9_2
5.14.0-162.23.1.el9_1
5.14.0-162.22.2.el9_1
5.14.0-162.18.1.el9_1
5.14.0-162.12.1.el9_1
5.14.0-70.30.1.0.1.el9_0
5.14.0-284.18.1.el9_2
5.14.0-284.25.1.el9_2
5.14.0-284.25.1.0.1.el9_2
5.14.0-284.30.0.1.el9_2
5.14.0-284.30.1.el9_2
5.14.0-362.8.1.el9_3
5.14.0-362.13.0.1.el9_3
5.14.0-362.13.1.el9_3
5.14.0-362.18.0.1.el9_3
5.14.0-362.18.0.2.el9_3
5.14.0-362.18.1.el9_3
5.14.0-362.24.1.el9_3
5.14.0-362.24.1.0.1.el9_3
5.14.0-427.13.1.el9_4
5.14.0-427.16.1.el9_4
5.14.0-362.24.1.0.2.el9_3
5.14.0-427.18.1.el9_4
5.14.0-427.20.1.el9_4
5.14.0-427.22.1.el9_4
5.14.0-427.24.1.el9_4
5.14.0-427.26.1.el9_4
5.14.0-427.28.1.el9_4
5.14.0-427.31.1.el9_4
5.14.0-427.33.1.el9_4
5.14.0-427.35.1.el9_4
|
Released |
Ubuntu 20.04 HWE AWS |
5.15.0-1026.30~20.04.2
show all
hide all
5.15.0-1022.26~20.04.1
5.15.0-1023.27~20.04.1
5.15.0-1021.25~20.04.1
5.15.0-1020.24~20.04.1
5.15.0-1017.21~20.04.1
5.15.0-1019.23~20.04.1
5.15.0-1014.18~20.04.1
5.15.0-1015.19~20.04.1
5.15.0-1018.22~20.04.1
5.15.0-1027.31~20.04.1
5.15.0-1028.32~20.04.1
5.15.0-1030.34~20.04.1
5.15.0-1031.35~20.04.1
5.15.0-1033.37~20.04.1
5.15.0-1034.38~20.04.1
5.15.0-1035.39~20.04.1
5.15.0-1036.40~20.04.1
5.15.0-1037.41~20.04.1
5.15.0-1038.43~20.04.1
5.15.0-1039.44~20.04.1
5.15.0-1040.45~20.04.1
5.15.0-1041.46~20.04.1
5.15.0-1043.48~20.04.1
5.15.0-1044.49~20.04.1
5.15.0-1045.50~20.04.1
5.15.0-1047.52~20.04.1
5.15.0-1048.53~20.04.1
5.15.0-1049.54~20.04.1
5.15.0-1050.55~20.04.1
5.15.0-1051.56~20.04.1
5.15.0-1052.57~20.04.1
5.15.0-1053.58~20.04.1
5.15.0-1055.60~20.04.1
5.15.0-1056.61~20.04.1
5.15.0-1057.63~20.04.1
5.15.0-1058.64~20.04.1
5.15.0-1061.67~20.04.1
5.15.0-1062.68~20.04.1
5.15.0-1063.69~20.04.1
5.15.0-1064.70~20.04.1
|
Released |
Ubuntu 20.04 HWE Azure |
5.15.0-1029.36~20.04.1
show all
hide all
5.15.0-1022.27~20.04.1
5.15.0-1023.29~20.04.1
5.15.0-1021.26~20.04.1
5.15.0-1020.25~20.04.1
5.15.0-1017.20~20.04.1
5.15.0-1019.24~20.04.1
5.15.0-1008.9~20.04.1
5.15.0-1013.16~20.04.1
5.15.0-1014.17~20.04.1
5.15.0-1024.30~20.04.1
5.15.0-1034.41~20.04.1
5.15.0-1049.56~20.04.1
5.15.0-1050.57~20.04.1
5.15.0-1054.62~20.04.1
5.15.0-1056.64~20.04.1
5.15.0-1057.65~20.04.1
5.15.0-1058.66~20.04.2
5.15.0-1059.67~20.04.1
5.15.0-1060.69~20.04.1
5.15.0-1061.70~20.04.1
5.15.0-1063.72~20.04.1
5.15.0-1064.73~20.04.1
5.15.0-1067.76~20.04.1
5.15.0-1065.74~20.04.1
|
Released |
Ubuntu 20.04 GCP | |
In Progress |
Rocky Linux 9 |
5.14.0-162.6.1.el9_1
show all
hide all
5.14.0-70.26.1.el9_0
5.14.0-70.30.1.el9_0
5.14.0-70.22.1.el9_0
5.14.0-162.6.1.el9_1.0.1
5.14.0-162.18.1.el9_1
5.14.0-162.12.1.el9_1.0.1
5.14.0-162.12.1.el9_1.0.2
5.14.0-162.22.2.el9_1
5.14.0-162.23.1.el9_1
5.14.0-284.30.1.el9_2
5.14.0-362.8.1.el9_3
5.14.0-362.13.1.el9_3
5.14.0-362.18.1.el9_3
5.14.0-362.24.1.el9_3
5.14.0-362.18.1.el9_3.0.1
5.14.0-427.16.1.el9_4
5.14.0-362.24.1.el9_3.0.1
5.14.0-427.18.1.el9_4
5.14.0-427.20.1.el9_4
5.14.0-427.24.1.el9_4
5.14.0-427.26.1.el9_4
5.14.0-427.28.1.el9_4
5.14.0-427.20.1.el9_4.0.1
5.14.0-427.22.1.el9_4
5.14.0-427.31.1.el9_4
5.14.0-427.33.1.el9_4
5.14.0-427.35.1.el9_4
|
Released |
AlmaLinux 9 |
5.14.0-162.6.1.el9_1
show all
hide all
5.14.0-70.26.1.el9_0
5.14.0-70.30.1.el9_0
5.14.0-70.17.1.el9_0
5.14.0-70.22.1.el9_0
5.14.0-162.12.1.el9_1
5.14.0-162.18.1.el9_1
5.14.0-162.22.2.el9_1
5.14.0-162.23.1.el9_1
5.14.0-284.11.1.el9_2
5.14.0-284.18.1.el9_2
5.14.0-70.13.1.el9_0
5.14.0-284.25.1.el9_2
5.14.0-284.30.1.el9_2
5.14.0-362.8.1.el9_3
5.14.0-362.13.1.el9_3
5.14.0-362.18.1.el9_3
5.14.0-362.24.1.el9_3
5.14.0-427.13.1.el9_4
5.14.0-427.16.1.el9_4
5.14.0-362.24.2.el9_3
5.14.0-427.18.1.el9_4
5.14.0-427.20.1.el9_4
5.14.0-427.24.1.el9_4
5.14.0-427.26.1.el9_4
5.14.0-427.28.1.el9_4
5.14.0-427.22.1.el9_4
5.14.0-427.31.1.el9_4
5.14.0-427.33.1.el9_4
5.14.0-427.35.1.el9_4
|
Released |
Ubuntu 24.04 | |
Planned |