Bug#1135935: bookworm-pu: package keystone/2:22.0.2-0+deb12u1

2026-05-19 Thread Thomas Goirand

On 5/7/26 7:02 PM, Adam D. Barratt wrote:

Control: tags -1 + confirmed

On Thu, 2026-05-07 at 12:29 +0200, Thomas Goirand wrote:

I'd like to upgrade Keystone to version 2:22.0.2-0+deb12u2,
which will contain 2 security patches.

[ Impact ]
CVE-2026-40683 and CVE-2026-33551.


Please go ahead.

Regards,

Adam


Uploaded.

Cheers,

Thomas Goirand (zigo)



Processed: Re: Bug#1135935: bookworm-pu: package keystone/2:22.0.2-0+deb12u1

2026-05-07 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + confirmed
Bug #1135935 [release.debian.org] bookworm-pu: package 
keystone/2:22.0.2-0+deb12u1
Added tag(s) confirmed.

-- 
1135935: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1135935
Debian Bug Tracking System
Contact [email protected] with problems



Bug#1135935: bookworm-pu: package keystone/2:22.0.2-0+deb12u1

2026-05-07 Thread Adam D. Barratt
Control: tags -1 + confirmed

On Thu, 2026-05-07 at 12:29 +0200, Thomas Goirand wrote:
> I'd like to upgrade Keystone to version 2:22.0.2-0+deb12u2,
> which will contain 2 security patches.
> 
> [ Impact ]
> CVE-2026-40683 and CVE-2026-33551.

Please go ahead.

Regards,

Adam



Bug#1135935: bookworm-pu: package keystone/2:22.0.2-0+deb12u1

2026-05-07 Thread Adam D. Barratt
On Thu, 2026-05-07 at 12:29 +0200, Thomas Goirand wrote:
> I'd like to upgrade Keystone to version 2:22.0.2-0+deb12u2,
> which will contain 2 security patches.
> 
> [ Impact ]
> CVE-2026-40683 and CVE-2026-33551.

As noted on IRC< this appears to overlap with #1133719.

Regards,

Adam



Bug#1135935: bookworm-pu: package keystone/2:22.0.2-0+deb12u1

2026-05-07 Thread Thomas Goirand
Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:keystone
User: [email protected]
Usertags: pu

Hi,

The security team asked me to go through p-u for this.

[ Reason ]
I'd like to upgrade Keystone to version 2:22.0.2-0+deb12u2,
which will contain 2 security patches.

[ Impact ]
CVE-2026-40683 and CVE-2026-33551.

[ Tests ]
The included patches contain unit tests. Also note that I've put in
production the patch CVE-2026-33551 (CVE-2026-40683 is only for LDAP which
we do not use), so I'm confident all is working.

[ Risks ]
Patches are small, and easy to understand.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

Please allow me to upload Keystone 2:22.0.2-0+deb12u2 to Bookworm p-u.

Cheers,

Thomas Goirand (zigo)
diff -Nru keystone-22.0.2/debian/changelog keystone-22.0.2/debian/changelog
--- keystone-22.0.2/debian/changelog2025-11-11 09:19:08.0 +0100
+++ keystone-22.0.2/debian/changelog2026-04-15 11:10:59.0 +0200
@@ -1,3 +1,20 @@
+keystone (2:22.0.2-0+deb12u2) bookworm; urgency=medium
+
+  * CVE-2026-40683 / OSSA-2026-007: LDAP identity backend does not convert
+enabled attribute to boolean. When the user_enabled_invert configuration
+option was False (the default), Keystone did not correctly interpret the
+LDAP enabled attribute, causing users disabled in LDAP to be treated as
+enabled and allowed to authenticate. Deployments using the LDAP identity
+backend without user_enabled_invert=True or user_enabled_emulation are
+affected. Applied upstream patch:
+- OSSA-2026-007-fix_ldap_enabled_setting_not_interpreted_as_boolean.patch
+(Closes: #1133884).
+  * CVE-2026-33551 / OSSA-2026-005: Restricted application credentials can
+create EC2 credentials. Applied upstream patch "Prevent unauthorized EC2
+credential creation and deletion" (Closes: #1133118).
+
+ -- Thomas Goirand   Wed, 15 Apr 2026 11:10:59 +0200
+
 keystone (2:22.0.2-0+deb12u1) bookworm-security; urgency=medium
 
   * New upstream release.
diff -Nru 
keystone-22.0.2/debian/patches/CVE-2026-33551~OSSA-2026-005_Prevent_unauthorized_EC2_credential_creation_and_deletion.patch
 
keystone-22.0.2/debian/patches/CVE-2026-33551~OSSA-2026-005_Prevent_unauthorized_EC2_credential_creation_and_deletion.patch
--- 
keystone-22.0.2/debian/patches/CVE-2026-33551~OSSA-2026-005_Prevent_unauthorized_EC2_credential_creation_and_deletion.patch
 1970-01-01 01:00:00.0 +0100
+++ 
keystone-22.0.2/debian/patches/CVE-2026-33551~OSSA-2026-005_Prevent_unauthorized_EC2_credential_creation_and_deletion.patch
 2026-04-15 11:10:59.0 +0200
@@ -0,0 +1,70 @@
+Author: Grzegorz Grasza 
+Date: Thu, 26 Feb 2026 10:09:18 +0100
+Description: CVE-2026-33551 / OSSA-2026-005: Prevent unauthorized EC2 
credential creation and deletion
+ A restricted application credential could be used to create EC2
+ credentials granting full user access to S3, bypassing the role
+ restriction. Add the same _check_unrestricted_application_credential
+ guard that already protects application credential create/delete
+ endpoints.
+ .
+ Additionally, tighten the ec2_create_credential and ec2_delete_credential
+ policies to require at least member role, as these are write operations
+ that should not be accessible to reader-role users regardless of whether
+ they are using an application credential.
+Change-Id: Ib6904ec9f1bc069a9f607d39814b1d2633c17f53
+Bug: https://launchpad.net/bugs/2142138
+Signed-off-by: Grzegorz Grasza 
+Bug-Debian: https://bugs.debian.org/1133118
+Origin: upstream, https://review.opendev.org/c/openstack/keystone/+/983597
+Last-Update: 2026-04-10
+
+Index: keystone/keystone/api/users.py
+===
+--- keystone.orig/keystone/api/users.py
 keystone/keystone/api/users.py
+@@ -387,6 +387,8 @@ class UserOSEC2CredentialsResourceListCr
+ target['credential'] = {'user_id': user_id}
+ ENFORCER.enforce_call(action='identity:ec2_create_credential',
+   target_attr=target)
++token = self.auth_context['token']
++_check_unrestricted_application_credential(token)
+ PROVIDERS.identity_api.get_user(user_id)
+ tenant_id = self.request_body_json.get('tenant_id')
+ PROVIDERS.resource_api.get_project(tenant_id)
+Index: keystone/keystone/common/policies/base.py
+===
+--- keystone.orig/keystone/common/policies/base.py
 keystone/keystone/common/policies/base.py
+@@ -64,6 +64,10 @@ ADMIN_OR_CRED_OWNER = (
+ '(' + RULE_ADMIN_REQUIRED + ') '
+ 'or user_id:%(target.credential.user_id)s'
+ )
++ADMIN_OR_MEMBER_AND_CRED_OWNER = (
++'(' +