UBUNTU-CVE-2021-47163
Vulnerability Summary
Timeline
Description
In the Linux kernel, the following vulnerability has been resolved: tipc: wait and exit until all work queues are done On some host, a crash could be triggered simply by repeating these commands several times: # modprobe tipc # tipc bearer enable media udp name UDP1 localip 127.0.0.1 # rmmod tipc [] BUG: unable to handle kernel paging request at ffffffffc096bb00 [] Workqueue: events 0xffffffffc096bb00 [] Call Trace: [] ? process_one_work+0x1a7/0x360 [] ? worker_thread+0x30/0x390 [] ? create_worker+0x1a0/0x1a0 [] ? kthread+0x116/0x130 [] ? kthread_flush_work_fn+0x10/0x10 [] ? ret_from_fork+0x35/0x40 When removing the TIPC module, the UDP tunnel sock will be delayed to release in a work queue as sock_release() can't be done in rtnl_lock(). If the work queue is schedule to run after the TIPC module is removed, kernel will crash as the work queue function cleanup_beareri() code no longer exists when trying to invoke it. To fix it, this patch introduce a member wq_count in tipc_net to track the numbers of work queues in schedule, and wait and exit until all work queues are done in tipc_exit_net().
CVSS Metrics
- v3.1•MEDIUM•Score: 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Systems
- ubuntu•linux
< 4.4.0-268.302 | < 4.15.0-237.249 | < 5.4.0-80.90
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
< 4.4.0-1143.149 | < 4.4.0-1181.196 | < 4.15.0-1180.193 | < 5.4.0-1054.57
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1054.57~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-fips
< 4.15.0-2118.124 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1180.193~16.04.1
- ubuntu•linux-azure
< 4.15.0-1188.203~14.04.1 | < 4.15.0-1188.203~16.04.1 | all | < 5.4.0-1055.57
- ubuntu•linux-azure-4.15
< 4.15.0-1188.203
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1055.57~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fips
< 4.15.0-2097.103 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
< 5.4.0-1016.19 | all
- ubuntu•linux-fips
< 4.4.0-1113.120 | all | < 4.15.0-1135.146 | < 5.4.0-1031.36
- ubuntu•linux-gcp
< 4.15.0-1173.190~16.04.1 | all | < 5.4.0-1049.53
- ubuntu•linux-gcp-4.15
< 4.15.0-1173.190
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1049.53~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-fips
< 4.15.0-2081.87 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
all
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.15
all
- ubuntu•linux-gke-5.4
all
- ubuntu•linux-gkeop
< 5.4.0-1021.22
- ubuntu•linux-gkeop-5.4
all
- ubuntu•linux-hwe
< 4.15.0-237.249~16.04.1 | all
- ubuntu•linux-hwe-5.11
all
- ubuntu•linux-hwe-5.13
all
- ubuntu•linux-hwe-5.19
all
- ubuntu•linux-hwe-5.4
< 5.4.0-80.90~18.04.1
Showing first 50 affected entries in server-rendered view.
References (14)
- https://ubuntu.com/security/CVE-2021-47163
- https://git.kernel.org/stable/c/d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa
- https://git.kernel.org/stable/c/5195ec5e365a2a9331bfeb585b613a6e94f98dba
- https://git.kernel.org/stable/c/b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d
- https://git.kernel.org/stable/c/04c26faa51d1e2fe71cf13c45791f5174c37f986
- https://www.cve.org/CVERecord?id=CVE-2021-47163
- https://ubuntu.com/security/notices/USN-7496-1
- https://ubuntu.com/security/notices/USN-7496-3
- https://ubuntu.com/security/notices/USN-7496-4
- https://ubuntu.com/security/notices/USN-7496-5
- https://ubuntu.com/security/notices/USN-7506-1
- https://ubuntu.com/security/notices/USN-7506-2
- https://ubuntu.com/security/notices/USN-7506-3
- https://ubuntu.com/security/notices/USN-7506-4