CVE-2026-43439

Source
https://cve.org/CVERecord?id=CVE-2026-43439
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43439.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-43439
Downstream
BELL (1)
DEBIAN (1)
openSUSE (1)
ROOT (3)
SUSE (10)
UBUNTU (1)
Related
Published
2026-05-08T14:22:08Z
Modified
2026-10-08T02:50:53Z
Summary
cgroup: fix race between task migration and iteration
Details

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

cgroup: fix race between task migration and iteration

When a task is migrated out of a css_set, cgroup_migrate_add_task() first moves it from cset->tasks to cset->mg_tasks via:

list_move_tail(&task->cg_list, &cset->mg_tasks);

If a css_task_iter currently has it->task_pos pointing to this task, css_set_move_task() calls css_task_iter_skip() to keep the iterator valid. However, since the task has already been moved to ->mg_tasks, the iterator is advanced relative to the mg_tasks list instead of the original tasks list. As a result, remaining tasks on cset->tasks, as well as tasks queued on cset->mg_tasks, can be skipped by iteration.

Fix this by calling css_set_skip_task_iters() before unlinking task->cg_list from cset->tasks. This advances all active iterators to the next task on cset->tasks, so iteration continues correctly even when a task is concurrently being migrated.

This race is hard to hit in practice without instrumentation, but it can be reproduced by artificially slowing down cgroup_procs_show(). For example, on an Android device a temporary /sys/kernel/cgroup/cgroup_test knob can be added to inject a delay into cgroup_procs_show(), and then:

  1. Spawn three long-running tasks (PIDs 101, 102, 103).
  2. Create a test cgroup and move the tasks into it.
  3. Enable a large delay via /sys/kernel/cgroup/cgroup_test.
  4. In one shell, read cgroup.procs from the test cgroup.
  5. Within the delay window, in another shell migrate PID 102 by writing it to a different cgroup.procs file.

Under this setup, cgroup.procs can intermittently show only PID 101 while skipping PID 103. Once the migration completes, reading the file again shows all tasks as expected.

Note that this change does not allow removing the existing css_set_skip_task_iters() call in css_set_move_task(). The new call in cgroup_migrate_add_task() only handles iterators that are racing with migration while the task is still on cset->tasks. Iterators may also start after the task has been moved to cset->mg_tasks. If we dropped css_set_skip_task_iters() from css_set_move_task(), such iterators could keep task_pos pointing to a migrating task, causing css_task_iter_advance() to malfunction on the destination css_set, up to and including crashes or infinite loops.

The race window between migration and iteration is very small, and css_task_iter is not on a hot path. In the worst case, when an iterator is positioned on the first thread of the migrating process, cgroup_migrate_add_task() may have to skip multiple tasks via css_set_skip_task_iters(). However, this only happens when migration and iteration actually race, so the performance impact is negligible compared to the correctness fix provided here.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43439.json"
}
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
b636fd38dc40113f853337a7d2a6885ad23b8811
Fixed
7c85debc35e6d131bd29c64f2ae78c6ede0e55c4
Fixed
3b95abab7369235a37b15eaec6e1a0b443bba7c7
Fixed
4a9654a2b46cfdaae287fb8995f536245635e467
Fixed
3dfd1328c05234e8d8fa61948b2ba82680594988
Fixed
9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce
Fixed
86ceaccfdfa16dad05addb33dc206e03589bcfd1
Fixed
9dc76f6fc0d28d2382583715bc4ec22f28104845
Fixed
5ee01f1a7343d6a3547b6802ca2d4cdce0edacb1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4.14.138
Fixed
4.15
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4.19.66
Fixed
4.20
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b0af004fd58ded5f898630db008c5b824c27d7db
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
370b9e6399da09fe10005fe455878b356de7b85f

Affected versions

v4.*
v4.14.138
v4.14.139
v4.14.140
v4.14.141
v4.14.142
v4.14.143
v4.14.144
v4.14.145
v4.14.146
v4.14.147
v4.14.148
v4.14.149
v4.14.150
v4.14.151
v4.14.152
v4.14.153
v4.14.154
v4.14.155
v4.14.156
v4.14.157
v4.14.158
v4.14.159
v4.14.160
v4.14.161
v4.14.162
v4.14.163
v4.14.164
v4.14.165
v4.14.166
v4.14.167
v4.14.168
v4.14.169
v4.14.170
v4.14.171
v4.14.172
v4.14.173
v4.14.174
v4.14.175
v4.14.176
v4.14.177
v4.14.178
v4.14.179
v4.14.180
v4.14.181
v4.14.182
v4.14.183
v4.14.184
v4.14.185
v4.14.186
v4.14.187
v4.14.188
v4.14.189
v4.14.190
v4.14.191
v4.14.192
v4.14.193
v4.14.194
v4.14.195
v4.14.196
v4.14.197
v4.14.198
v4.14.199
v4.14.200
v4.14.201
v4.14.202
v4.14.203
v4.14.204
v4.14.205
v4.14.206
v4.14.207
v4.14.208
v4.14.209
v4.14.210
v4.14.211
v4.14.212
v4.14.213
v4.14.214
v4.14.215
v4.14.216
v4.14.217
v4.14.218
v4.14.219
v4.14.220
v4.14.221
v4.14.222
v4.14.223
v4.14.224
v4.14.225
v4.14.226
v4.14.227
v4.14.228
v4.14.229
v4.14.230
v4.14.231
v4.14.232
v4.14.233
v4.14.234
v4.14.235
v4.14.236
v4.14.237
v4.14.238
v4.14.239
v4.14.240
v4.14.241
v4.14.242
v4.14.243
v4.14.244
v4.14.245
v4.14.246
v4.14.247
v4.14.248
v4.14.249
v4.14.250
v4.14.251
v4.14.252
v4.14.253
v4.14.254
v4.14.255
v4.14.256
v4.14.257
v4.14.258
v4.14.259
v4.14.260
v4.14.261
v4.14.262
v4.14.263
v4.14.264
v4.14.265
v4.14.266
v4.14.267
v4.14.268
v4.14.269
v4.14.270
v4.14.271
v4.14.272
v4.14.273
v4.14.274
v4.14.275
v4.14.276
v4.14.277
v4.14.278
v4.14.279
v4.14.280
v4.14.281
v4.14.282
v4.14.283
v4.14.284
v4.14.285
v4.14.286
v4.14.287
v4.14.288
v4.14.289
v4.14.290
v4.14.291
v4.14.292
v4.14.293
v4.14.294
v4.14.295
v4.14.296
v4.14.297
v4.14.298
v4.14.299
v4.14.300
v4.14.301
v4.14.302
v4.14.303
v4.14.304
v4.14.305
v4.14.306
v4.14.307
v4.14.308
v4.14.309
v4.14.310
v4.14.311
v4.14.312
v4.14.313
v4.14.314
v4.14.315
v4.14.316
v4.14.317
v4.14.318
v4.14.319
v4.14.320
v4.14.321
v4.14.322
v4.14.323
v4.14.324
v4.14.325
v4.14.326
v4.14.327
v4.14.328
v4.14.329
v4.14.330
v4.14.331
v4.14.332
v4.14.333
v4.14.334
v4.14.335
v4.14.336
v4.19.100
v4.19.101
v4.19.102
v4.19.103
v4.19.104
v4.19.105
v4.19.106
v4.19.107
v4.19.108
v4.19.109
v4.19.110
v4.19.111
v4.19.112
v4.19.113
v4.19.114
v4.19.115
v4.19.116
v4.19.117
v4.19.118
v4.19.119
v4.19.120
v4.19.121
v4.19.122
v4.19.123
v4.19.124
v4.19.125
v4.19.126
v4.19.127
v4.19.128
v4.19.129
v4.19.130
v4.19.131
v4.19.132
v4.19.133
v4.19.134
v4.19.135
v4.19.136
v4.19.137
v4.19.138
v4.19.139
v4.19.140
v4.19.141
v4.19.142
v4.19.143
v4.19.144
v4.19.145
v4.19.146
v4.19.147
v4.19.148
v4.19.149
v4.19.150
v4.19.151
v4.19.152
v4.19.153
v4.19.154
v4.19.155
v4.19.156
v4.19.157
v4.19.158
v4.19.159
v4.19.160
v4.19.161
v4.19.162
v4.19.163
v4.19.164
v4.19.165
v4.19.166
v4.19.167
v4.19.168
v4.19.169
v4.19.170
v4.19.171
v4.19.172
v4.19.173
v4.19.174
v4.19.175
v4.19.176
v4.19.177
v4.19.178
v4.19.179
v4.19.180
v4.19.181
v4.19.182
v4.19.183
v4.19.184
v4.19.185
v4.19.186
v4.19.187
v4.19.188
v4.19.189
v4.19.190
v4.19.191
v4.19.192
v4.19.193
v4.19.194
v4.19.195
v4.19.196
v4.19.197
v4.19.198
v4.19.199
v4.19.200
v4.19.201
v4.19.202
v4.19.203
v4.19.204
v4.19.205
v4.19.206
v4.19.207
v4.19.208
v4.19.209
v4.19.210
v4.19.211
v4.19.212
v4.19.213
v4.19.214
v4.19.215
v4.19.216
v4.19.217
v4.19.218
v4.19.219
v4.19.220
v4.19.221
v4.19.222
v4.19.223
v4.19.224
v4.19.225
v4.19.226
v4.19.227
v4.19.228
v4.19.229
v4.19.230
v4.19.231
v4.19.232
v4.19.233
v4.19.234
v4.19.235
v4.19.236
v4.19.237
v4.19.238
v4.19.239
v4.19.240
v4.19.241
v4.19.242
v4.19.243
v4.19.244
v4.19.245
v4.19.246
v4.19.247
v4.19.248
v4.19.249
v4.19.250
v4.19.251
v4.19.252
v4.19.253
v4.19.254
v4.19.255
v4.19.256
v4.19.257
v4.19.258
v4.19.259
v4.19.260
v4.19.261
v4.19.262
v4.19.263
v4.19.264
v4.19.265
v4.19.266
v4.19.267
v4.19.268
v4.19.269
v4.19.270
v4.19.271
v4.19.272
v4.19.273
v4.19.274
v4.19.275
v4.19.276
v4.19.277
v4.19.278
v4.19.279
v4.19.280
v4.19.281
v4.19.282
v4.19.283
v4.19.284
v4.19.285
v4.19.286
v4.19.287
v4.19.288
v4.19.289
v4.19.290
v4.19.291
v4.19.292
v4.19.293
v4.19.294
v4.19.295
v4.19.296
v4.19.297
v4.19.298
v4.19.299
v4.19.300
v4.19.301
v4.19.302
v4.19.303
v4.19.304
v4.19.305
v4.19.306
v4.19.307
v4.19.308
v4.19.309
v4.19.310
v4.19.311
v4.19.312
v4.19.313
v4.19.314
v4.19.315
v4.19.316
v4.19.317
v4.19.318
v4.19.319
v4.19.320
v4.19.321
v4.19.322
v4.19.323
v4.19.324
v4.19.325
v4.19.66
v4.19.67
v4.19.68
v4.19.69
v4.19.70
v4.19.71
v4.19.72
v4.19.73
v4.19.74
v4.19.75
v4.19.76
v4.19.77
v4.19.78
v4.19.79
v4.19.80
v4.19.81
v4.19.82
v4.19.83
v4.19.84
v4.19.85
v4.19.86
v4.19.87
v4.19.88
v4.19.89
v4.19.90
v4.19.91
v4.19.92
v4.19.93
v4.19.94
v4.19.95
v4.19.96
v4.19.97
v4.19.98
v4.19.99

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43439.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.2.0
Fixed
5.10.253
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.203
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.167
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.130
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.78
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.19
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43439.json"