{"id":26946,"date":"2022-10-12T01:49:59","date_gmt":"2022-10-11T23:49:59","guid":{"rendered":"http:\/\/159.69.82.204\/win\/?p=26946"},"modified":"2022-10-28T19:04:29","modified_gmt":"2022-10-28T17:04:29","slug":"windows-oktober-2022-patchday-fix-fr-domain-join-hardening-cve-2022-38042-verhindert-ggf-domain-join","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2022\/10\/12\/windows-oktober-2022-patchday-fix-fr-domain-join-hardening-cve-2022-38042-verhindert-ggf-domain-join\/","title":{"rendered":"Windows October 2022 Patchday: Fix for Domain Join Hardening (CVE-2022-38042) prevents domain join"},"content":{"rendered":"<p><img decoding=\"async\" style=\"float: left; margin: 0px 10px 0px 0px; display: inline;\" title=\"Windows\" src=\"https:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2021\/04\/Windows-klein.jpg\" alt=\"Windows\" width=\"200\" align=\"left\" \/>[<a href=\"https:\/\/www.borncity.com\/blog\/2022\/10\/12\/windows-oktober-2022-patchday-fix-fr-domain-join-hardening-cve-2022-38042-verhindert-ggf-domain-join\/\" target=\"_blank\" rel=\"noopener\">German<\/a>]I'm posting a first warning about the October 2022 security updates for Windows here on the blog because a reader from the business environment pointed it out to me. The domain join hardening changes made with the updates to close the vulnerability (CVE-2022-38042) have powerful collateral damage. With this update, AD join of Windows clients may no longer be possible if certain conditions cannot be met &#8211; this affects all versions of Windows.<\/p>\n<p><!--more--><\/p>\n<h2>Netjoin: Domain Join Hardening Changes<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vg05.met.vgwort.de\/na\/d957f08760ef4df692770f6c62f4b944\" alt=\"\" width=\"1\" height=\"1\" \/>Microsoft describes in a support article <a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/kb5020276-netjoin-domain-join-hardening-changes-2b65a0f3-1f4c-42ef-ac0f-1caaf421baf8\" target=\"_blank\" rel=\"noopener\">KB5020276\u2014Netjoin: Domain join hardening changes<\/a> some chances made to fix vulnerability CVE-2022-38042 with the October 11, 2022 cumulative update packages for all supported operating systems.<\/p>\n<ul>\n<li>Windows Server 2008 (ESU)<\/li>\n<li>Windows 7 (ESU)<\/li>\n<li>Windows Server 2008 R2 (ESU)<\/li>\n<li>Windows Embedded POSReady 7 (ESU)<\/li>\n<li>Windows Server 2012<\/li>\n<li>Windows Server 2012 R2<\/li>\n<li>Windows Embedded 8 Standard<\/li>\n<li>Windows Embedded 8.1<\/li>\n<li>Windows 8.1<\/li>\n<li>Windows RT 8.1<\/li>\n<li>Windows 10 Windows 10, version 1607<\/li>\n<li>Windows 10 Enterprise 2019 LTSC<\/li>\n<li>Windows 10 IoT Enterprise 2019 LTSC<\/li>\n<li>Windows 10 IoT Core 2019 LTSC<\/li>\n<li>Windows 10 Enterprise Multi-Session, version 20H2<\/li>\n<li>Windows 10 Enterprise und Education, version 20H2<\/li>\n<li>Windows 10 IoT Enterprise, version 20H2<\/li>\n<li>Windows 10 auf Surface Hub<\/li>\n<li>Windows 10, Version 21H1 &#8211; 21H2 (all editions)<\/li>\n<li>Windows 11 Version 21H2 &#8211; 22H2 (all editions)<\/li>\n<li>Windows Server 2016<\/li>\n<li>Windows Server 2019<\/li>\n<li>Windows Server 2022<\/li>\n<\/ul>\n<p>Once the Windows cumulative updates dated October 11, 2022 or later are installed on a client computer, the client will perform additional security checks during domain joining before attempting to reuse an existing computer account. These changes are enabled by default and are \"secure,\" according to Microsoft. The support article states:<\/p>\n<blockquote><p>During domain joining and computer account provisioning, the client computer queries Active Directory for an existing account with the same name. If such an account exists, the client automatically attempts to reuse it.<\/p><\/blockquote>\n<p>The reuse attempt fails, according to Microsoft, if the user trying to join the domain does not have the appropriate write permissions. However, if the user has sufficient permissions, the domain join should succeed. In the support article, Microsoft describes scenarios why domain join fails.<\/p>\n<h2>Domain join always fails<\/h2>\n<p>German blog reader Martin E. wrote me a few minutes ago that the October 2022 updates for Windows are causing disaster in his environment. After he integrated the update KB5018418 for his Windows 11 21H2 clients (it is similar for Windows 10, see screenshot below) into the image and the clients could not join the AD to the domain anymore.<\/p>\n<p><img decoding=\"async\" title=\"Netjoin: Domain join hardening changes - affected Windows versions\" src=\"https:\/\/i.imgur.com\/ryezkUf.png\" alt=\"Netjoin: Domain join hardening changes - affected Windows versions\" \/><\/p>\n<p>This probably affects all Windows versions. Martin points to support article <a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/kb5020276-netjoin-domain-join-hardening-changes-2b65a0f3-1f4c-42ef-ac0f-1caaf421baf8\" target=\"_blank\" rel=\"noopener\">KB5020276\u2014Netjoin: Domain join hardening changes (microsoft.com)<\/a> as the cause. He now faces the problem that the exceptions described in the above support post cannot possibly be guaranteed on a large fleet of machines. The user who created the machines must also be the join account or a domain admin created the machine account.<\/p>\n<blockquote><p>An adhoc approach would be to create an image with old September 2022 patch, and install the October 2022 update only after the domain join.<\/p>\n<p>Leaving an AD domain and rejoining would then no longer be possible with the October 2022 patch. Currently, this October 2022 update is not yet in any Windows installation image &#8211; even Windows 11 22H2 does not have the October 2022 update integrated in the installation image yet (it is still at the September 2022 patch level).<\/p><\/blockquote>\n<p>How do you solve this problem? Or does this not apply to you in the corporate environment?<\/p>\n<h2>Possible workaround<\/h2>\n<p>Martin wrote in a follow-up that there might be a backdoor and sent me the following screenshot with a trace log and a short explanation:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/BPgsRBj.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" title=\"Trace log\" src=\"https:\/\/i.imgur.com\/BPgsRBj.png\" alt=\"Trace log\" width=\"643\" height=\"164\" \/><\/a><\/p>\n<p>There is a new registry entry <em>NetJoinLegacyAccountReuse<\/em>, and the log provides an indication that Active Directory join has been blocked on the account by security policy. Martin writes:<\/p>\n<blockquote><p>I think status: 2 = net helpmsg 2 = \"The system cannot find the specified file\".<\/p>\n<p>So that it can't find the key.<\/p><\/blockquote>\n<p>Currently, search engines like Google can't find anything about the <em>NetJoinLegacyAccountReuse<\/em>, which is brand new. The entry<em>NetJoinLegacyAccountReuse <\/em>is a DWORD value within the registry key:<\/p>\n<p>HKLM\\System\\CurrentControlSet\\Control\\Lsa<\/p>\n<p>If this DWORD value <em>NetJoinLegacyAccountReuse <\/em>is set to 0x1, a domain join with the old user accounts should work again. Without the DWORD entry, the domain join attempt with the October 2022 update installed returns the following error:<\/p>\n<blockquote><p>An account with the same name exists in Active Directory. Re-using the account was blocked by security policy.<\/p>\n<p>The command failed to complet successfully.<\/p><\/blockquote>\n<p>Once the <em>NetJoinLegacyAccountReuse <\/em>DWORD value is set to 1, the client reports:<\/p>\n<blockquote><p>The computer needs to be restartet in order to complet the operation.<\/p>\n<p>The command completed successfully.<\/p><\/blockquote>\n<p>This is confirmed in the log, because the query for <em>IsNetJoinLegacyAccountReuseSetInRegistry<\/em> now returns Tr<\/p>\n<p><img decoding=\"async\" title=\"IsNetJoinLegacyAccountReuseSetInRegistry \" src=\"https:\/\/i.imgur.com\/LBnD2VG.png\" alt=\"IsNetJoinLegacyAccountReuseSetInRegistry \" \/><\/p>\n<p>Thanks to Martin for these hints. A support post or an addendum to <a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/kb5020276-netjoin-domain-join-hardening-changes-2b65a0f3-1f4c-42ef-ac0f-1caaf421baf8\" target=\"_blank\" rel=\"noopener\">KB5020276<\/a> is not yet available &#8211; feel free to leave a comment if you come across anything else on the subject.<\/p>\n<p><strong>Similar articles:<br \/>\n<\/strong><a href=\"https:\/\/borncity.com\/win\/2022\/10\/05\/microsoft-office-updates-4-oktober-2022\/\">Microsoft Office Updates (Oktober 4, 2022)<\/a><strong><br \/>\n<\/strong><a href=\"https:\/\/borncity.com\/win\/2022\/10\/11\/microsoft-security-update-summary-11-oktober-2022\/\">Microsoft Security Update Summary (October 11, 2022)<\/a><br \/>\n<a href=\"https:\/\/borncity.com\/win\/2022\/10\/12\/patchday-windows-10-updates-11-oktober-2022\/\">Patchday: Windows 10-Updates (October 11, 2022)<\/a><br \/>\n<a href=\"https:\/\/borncity.com\/win\/2022\/10\/11\/windows-10-achtung-vor-einem-mglichen-tls-desaster-zum-oktober-2022-patchday\/\">Windows 10: Beware of a possible TLS disaster on October 2022 patchday<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[German]I'm posting a first warning about the October 2022 security updates for Windows here on the blog because a reader from the business environment pointed it out to me. The domain join hardening changes made with the updates to close &hellip; <a href=\"https:\/\/borncity.com\/win\/2022\/10\/12\/windows-oktober-2022-patchday-fix-fr-domain-join-hardening-cve-2022-38042-verhindert-ggf-domain-join\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463,580,22,2],"tags":[2746,2745,466,69,195,194],"class_list":["post-26946","post","type-post","status-publish","format-standard","hentry","category-issue","category-security","category-update","category-windows","tag-netjoinlegacyaccountreuse","tag-patchday-10-2022","tag-problem","tag-security","tag-update","tag-windows"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/26946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=26946"}],"version-history":[{"count":0,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/26946\/revisions"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=26946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=26946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=26946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}