In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to create a ptrace relationship, which allows local users to obtain root access by leveraging certain scenarios with a parent-child process relationship, where a parent drops privileges and calls execve (potentially allowing control by an attacker). One contributing factor is an object lifetime issue (which can also cause a panic). Another contributing factor is incorrect marking of a ptrace relationship as privileged, which is exploitable through (for example) Polkit's pkexec helper with PTRACE_TRACEME. NOTE: SELinux deny_ptrace might be a usable workaround in some environments.
5.13.0-19.196.5.0-9.95.3.0-18.195.3.0-24.265.4.0-9.124.13.0-16.194.13.0-17.204.13.0-25.294.13.0-32.354.15.0-10.114.15.0-12.134.15.0-13.144.15.0-15.164.15.0-19.204.15.0-20.21+23 more4.15.0-58.644.2.0-16.194.2.0-17.214.2.0-19.234.3.0-1.104.3.0-2.114.3.0-5.164.3.0-6.174.3.0-7.184.4.0-10.254.4.0-101.124+85 more4.4.0-159.1876.11.0-8.83.11.0-12.194.4.0-1001.104.4.0-1003.124.4.0-1004.134.4.0-1007.164.4.0-1009.184.4.0-1011.204.4.0-1012.214.4.0-1013.224.4.0-1016.254.4.0-1017.26+44 more4.4.0-1090.1014.4.0-1002.24.4.0-1003.34.4.0-1005.54.4.0-1006.64.4.0-1009.94.4.0-1010.104.4.0-1011.114.4.0-1012.124.4.0-1014.144.4.0-1016.16+19 more4.4.0-1054.585.13.0-1005.66.5.0-1008.86.11.0-1004.45.3.0-1003.35.3.0-1008.95.3.0-1009.105.3.0-1010.115.4.0-1005.54.15.0-1001.14.15.0-1003.34.15.0-1005.54.15.0-1006.64.15.0-1007.74.15.0-1009.94.15.0-1010.104.15.0-1011.114.15.0-1016.164.15.0-1017.17+19 more4.15.0-1047.495.0.0-1021.24~18.04.15.15.0-1014.18~20.04.15.15.0-1015.19~20.04.15.4.0-1018.18~18.04.15.4.0-1020.20~18.04.26.8.0-1009.9~22.04.24.15.0-2000.45.15.0-1051.56+fips14.15.0-2000.44.15.0-2018.185.4.0-1021.21+fips25.4.0-1021.21+fips25.15.0-1042.47+fips14.15.0-2000.44.15.0-2000.45.15.0-1051.56+fips15.15.0-1052.57+fips15.15.0-1042.47+fips15.15.0-1051.56+fips14.15.0-1030.31~16.04.14.15.0-1031.33~16.04.14.15.0-1032.34~16.04.14.15.0-1033.35~16.04.14.15.0-1035.37~16.04.14.15.0-1036.38~16.04.14.15.0-1039.41~16.04.14.15.0-1040.42~16.04.14.15.0-1041.43~16.04.14.15.0-1043.45~16.04.1+2 more4.15.0-1047.49~16.04.14.11.0-1009.94.11.0-1011.114.11.0-1013.134.11.0-1014.144.11.0-1015.154.11.0-1016.164.13.0-1005.74.13.0-1006.84.13.0-1007.94.13.0-1009.12+31 more4.15.0-1055.605.3.0-1003.35.3.0-1008.95.3.0-1009.105.4.0-1006.64.15.0-1002.24.15.0-1003.34.15.0-1004.44.15.0-1008.84.15.0-1009.94.15.0-1012.124.15.0-1013.134.15.0-1014.144.15.0-1018.184.15.0-1019.19+20 more5.0.0-1014.14~18.04.16.5.0-1007.74.15.0-1023.24~14.04.14.15.0-1030.31~14.04.14.15.0-1031.32~14.04.14.15.0-1032.33~14.04.24.15.0-1035.36~14.04.24.15.0-1036.38~14.04.24.15.0-1037.39~14.04.24.15.0-1039.41~14.04.24.15.0-1040.44~14.04.14.15.0-1041.45~14.04.1+2 more4.15.0-1059.64~14.04.16.11.0-1004.45.13.0-1006.74.15.0-1082.925.15.0-1007.8~20.04.15.3.0-1007.8~18.04.15.4.0-1020.20~18.04.15.4.0-1022.22~18.04.16.11.0-1008.8~24.04.16.8.0-1008.8~22.04.15.4.0-1063.66+cvm2.25.4.0-1063.66+cvm3.25.4.0-1064.67+cvm1.15.4.0-1065.68+cvm2.15.4.0-1067.70+cvm1.15.4.0-1068.71+cvm1.15.4.0-1069.72+cvm1.15.4.0-1070.73+cvm1.15.4.0-1072.75+cvm1.15.4.0-1073.76+cvm1.1+16 more5.15.0-1019.24.15.15.0-1019.24~20.04.1.14.15.0-1002.24.15.0-2006.75.15.0-1053.61+fips14.15.0-1002.25.4.0-1022.22+fips15.15.0-1053.61+fips15.15.0-1058.66+fips15.4.0-1022.22+fips16.8.0-1013.145.4.0-1007.105.4.0-1011.145.15.0-1011.135.15.0-73.80+fips15.15.0-73.80+fips15.15.0-92.102+fips14.4.0-1003.34.4.0-1005.54.4.0-1006.64.4.0-1008.104.4.0-1010.134.4.0-1011.144.4.0-1012.164.4.0-1013.174.4.0-1015.204.4.0-1017.224.4.0-1003.34.4.0-1005.54.4.0-1006.64.4.0-1008.104.4.0-1010.134.4.0-1011.144.4.0-1012.164.4.0-1013.174.4.0-1015.204.15.0-1027.325.4.0-1007.85.4.0-1026.305.13.0-1005.64.10.0-1004.44.10.0-1006.64.10.0-1007.74.10.0-1008.84.10.0-1009.94.13.0-1002.54.13.0-1006.94.13.0-1007.104.13.0-1008.114.13.0-1011.15+24 more4.15.0-1040.42~16.04.15.3.0-1004.45.3.0-1009.105.3.0-1011.125.4.0-1005.56.5.0-1007.76.11.0-1003.34.15.0-1001.14.15.0-1003.34.15.0-1005.54.15.0-1006.64.15.0-1008.84.15.0-1009.94.15.0-1010.104.15.0-1014.144.15.0-1015.154.15.0-1017.18+16 more4.15.0-1040.424.15.0-1071.815.15.0-1006.9~20.04.15.3.0-1008.9~18.04.15.4.0-1019.19~18.04.25.4.0-1021.21~18.04.16.11.0-1006.6~24.04.26.8.0-1010.11~22.04.15.15.0-1048.56+fips15.4.0-1021.21+fips14.15.0-2013.145.15.0-1048.56+fips15.4.0-1021.21+fips14.15.0-1001.16.8.0-1003.55.4.0-1033.355.4.0-1035.375.4.0-1036.385.4.0-1037.395.4.0-1039.415.4.0-1041.435.4.0-1042.445.4.0-1043.455.4.0-1044.465.4.0-1046.48+41 more5.15.0-1002.24.15.0-1030.324.15.0-1032.344.15.0-1033.354.15.0-1034.364.15.0-1036.384.15.0-1037.394.15.0-1040.425.0.0-1011.11~18.04.15.0.0-1013.13~18.04.15.4.0-1008.96.8.0-1001.35.15.0-1001.25.15.0-1003.5~20.04.24.18.0-13.14~18.04.14.18.0-14.15~18.04.14.18.0-15.16~18.04.14.18.0-16.17~18.04.14.18.0-17.18~18.04.14.18.0-18.19~18.04.14.18.0-20.21~18.04.14.18.0-21.22~18.04.14.18.0-22.23~18.04.14.18.0-24.25~18.04.1+2 more5.0.0-25.26~18.04.14.10.0-27.30~16.04.24.10.0-28.32~16.04.24.10.0-30.34~16.04.14.10.0-32.36~16.04.14.10.0-33.37~16.04.14.10.0-35.39~16.04.14.10.0-37.41~16.04.14.10.0-38.42~16.04.14.10.0-40.44~16.04.14.10.0-42.46~16.04.1+44 more4.15.0-58.64~16.04.15.15.0-33.34~20.04.15.4.0-37.41~18.04.16.11.0-17.17~24.04.26.11.0-19.19~24.04.16.8.0-38.38~22.04.15.0.0-15.16~18.04.15.0.0-16.17~18.04.15.0.0-17.18~18.04.15.0.0-19.20~18.04.15.0.0-20.21~18.04.15.3.0-19.20~18.04.25.3.0-22.24~18.04.15.3.0-23.25~18.04.15.3.0-23.25~18.04.25.3.0-24.26~18.04.25.4.0-1003.45.4.0-1004.55.15.0-1002.26.5.0-1009.95.15.0-1033.36~20.04.15.15.0-1034.37~20.04.15.4.0-1010.11~18.04.26.8.0-1008.8~22.04.15.15.0-1073.755.15.0-1021.265.15.0-1004.65.15.0-1003.5~20.04.15.4.0-1001.34.15.0-1002.24.15.0-1003.34.15.0-1004.44.15.0-1006.64.15.0-1008.84.15.0-1010.104.15.0-1011.114.15.0-1012.124.15.0-1016.164.15.0-1017.17+17 more4.15.0-1042.425.13.0-1004.45.3.0-1003.35.3.0-1008.95.3.0-1009.105.4.0-1004.44.4.0-1004.94.4.0-1007.124.4.0-1008.134.4.0-1009.144.4.0-1010.154.4.0-1012.174.4.0-1013.184.4.0-1015.204.4.0-1017.224.4.0-1019.24+23 more4.4.0-1054.616.5.0-9.9.15.15.0-22.225.15.0-33.34~20.04.16.11.0-1009.10~24.04.16.11.0-1011.12~24.04.16.8.0-38.38.1~22.04.24.4.0-101.124~14.04.14.4.0-103.126~14.04.14.4.0-104.127~14.04.14.4.0-108.131~14.04.14.4.0-109.132~14.04.14.4.0-111.134~14.04.14.4.0-112.135~14.04.14.4.0-116.140~14.04.14.4.0-119.143~14.04.14.4.0-121.145~14.04.1+59 more4.4.0-164.192~14.04.16.8.0-1007.75.15.0-1005.56.5.0-1004.46.8.0-1008.8~22.04.16.8.0-1009.9.16.8.0-1003.35.15.0-1009.95.15.0-1010.105.15.0-1012.125.15.0-1013.135.15.0-1009.9~20.04.15.15.0-1001.14.15.0-1002.34.15.0-1004.54.15.0-1006.94.15.0-1008.114.15.0-1009.124.15.0-1012.154.15.0-1013.164.15.0-1015.184.15.0-1017.204.15.0-1018.21+13 more4.15.0-1050.576.11.0-1007.76.14.0-1004.46.14.0-1005.56.8.0-1003.35.0.0-1010.115.0.0-1012.135.0.0-1015.165.0.0-1018.205.13.0-1008.106.11.0-1006.64.15.0-1007.9~16.04.14.15.0-1008.10~16.04.14.15.0-1009.11~16.04.14.15.0-1010.12~16.04.14.15.0-1011.13~16.04.14.15.0-1013.15~16.04.14.15.0-1014.16~16.04.14.15.0-1015.17~16.04.14.15.0-1017.19~16.04.24.15.0-1018.20~16.04.14.15.0-1021.23~16.04.16.5.0-1010.105.3.0-1002.25.3.0-1007.85.3.0-1008.95.4.0-1005.54.15.0-1007.94.15.0-1008.104.15.0-1009.114.15.0-1010.124.15.0-1011.134.15.0-1013.154.15.0-1014.164.15.0-1015.174.15.0-1017.194.15.0-1018.204.15.0-1021.235.0.0-1007.12~18.04.15.15.0-1007.9~20.04.15.4.0-1019.19~18.04.15.4.0-1021.21~18.04.16.8.0-1006.6~22.04.35.13.0-1008.96.5.0-1005.75.4.0-1007.76.11.0-1004.45.4.0-1013.13~18.04.16.8.0-2019.206.7.0-2001.15.3.0-1007.85.3.0-1014.165.3.0-1015.175.3.0-1017.195.4.0-1004.45.3.0-1007.85.3.0-1014.165.3.0-1015.175.3.0-1017.195.4.0-1004.45.4.0-1006.64.13.0-1005.54.13.0-1006.64.13.0-1008.84.15.0-1006.74.15.0-1009.104.15.0-1010.114.15.0-1011.124.15.0-1012.134.15.0-1013.144.15.0-1017.18+19 more4.15.0-1043.464.2.0-1013.194.2.0-1014.214.3.0-1006.64.4.0-1003.44.4.0-1004.54.4.0-1009.104.4.0-1010.124.4.0-1010.134.4.0-1012.164.4.0-1016.22+57 more4.4.0-1118.1275.3.0-1017.19~18.04.16.11.0-1001.15.15.0-1006.65.15.0-1032.356.8.1-1015.166.8.0-1008.195.4.0-24.285.4.0-26.305.4.0-27.315.4.0-28.325.4.0-30.345.4.0-31.355.4.0-33.375.4.0-34.385.4.0-36.415.4.0-37.42+2 more6.11.0-8.8.16.5.0-9.9.15.13.0-1004.45.13.0-1006.6+22.04.15.13.0-1007.7+22.04.15.13.0-1010.11+22.04.15.15.0-1004.45.15.0-1005.55.15.0-1006.65.15.0-1007.75.15.0-1008.85.15.0-1011.12+13 more5.15.0-1015.17~20.04.16.14.0-22.22.1~24.04.16.8.0-38.38.1~22.04.14.4.0-1012.124.4.0-1013.144.4.0-1013.154.4.0-1015.184.4.0-1019.224.4.0-1020.234.4.0-1022.254.4.0-1024.274.4.0-1026.294.4.0-1030.33+55 more4.4.0-1122.1284.15.0-1053.574.15.0-1054.584.15.0-1055.594.15.0-1057.624.15.0-1058.644.4.0-1077.824.4.0-1078.834.4.0-1079.844.4.0-1081.864.15.0-1060.665.4.0-1020.245.15.0-1022.26Exploitability
AV:LAC:LPR:LUI:NScope
S:UImpact
C:HI:HA:HCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H