Skip to content

fix(tpm2): assign noDA attribute to TPM2 objects not dependant on a PIN - #419

Open
deepin-ci-robot wants to merge 1 commit into
deepin-community:masterfrom
deepin-ci-robot:backport/fix-tpm2-assign-noda-attribute-not-dependant-on-pin
Open

fix(tpm2): assign noDA attribute to TPM2 objects not dependant on a PIN#419
deepin-ci-robot wants to merge 1 commit into
deepin-community:masterfrom
deepin-ci-robot:backport/fix-tpm2-assign-noda-attribute-not-dependant-on-pin

Conversation

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

Problem Before the Change

TPM2 objects sealed by systemd-cryptenroll were not assigned the noDA attribute, so they were subject to the TPM's dictionary attack (DA) protection logic. For high-entropy keys protected only by a PCR policy this provides no benefit, and enrollments could hit DA lockout and fail to unlock.

What This PR Changes

Backport of upstream systemd commit 9bf91584: assign the noDA attribute to TPM2 sealed objects that are not dependant on a PIN. All keys are high-entropy keys that cannot be practically bruteforced and thus don't require protection from dictionary attacks — with the exception of PINs, which are low-entropy and user provided, so DA protection is enabled only when a PIN is used.

Note that a new enrollment is required for unlocking while in DA lockdown to function; existing enrollments are subject to DA lockout.

Problem Solved After the Change

TPM2-backed LUKS2 unlocking no longer enters DA lockout for non-PIN enrollments, avoiding spurious unlock failures after repeated attempts (upstream issue #30330).

Changes

  • Add debian/patches/fix-tpm2-assign-noda-attribute-not-dependant-on-pin.patch
  • Modify debian/patches/series
  • Modify debian/changelog

Upstream

systemd/systemd@9bf91584 (PR #30728)

Generated-By: glm-5.3-flash
Co-Authored-By: deepin-ci-robot packages@deepin.org

All the keys are high-entropy keys that cannot be practically
bruteforced and thus don't require protection from dictionary attacks.
With the exception of PINs, of course, which are low-entropy and user
provided.

Note that a new enrollment is required for unlocking while in DA
lockdown to function. Existing enrollments are subject to DA lockout.

Changes:
  - Add debian/patches/fix-tpm2-assign-noda-attribute-not-dependant-on-pin.patch
  - Modify debian/patches/series
  - Modify debian/changelog

Upstream: systemd/systemd@9bf9158

Generated-By: glm-5.3-flash
Co-Authored-By: deepin-ci-robot <packages@deepin.org>
@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign utsweetyfish for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

TAG Bot

TAG: 255.2-4deepin68
EXISTED: no
DISTRIBUTION: unstable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant