Skip to contentSkip to conversation

Add SECURITY.md for the CIP kernel

PATCH Superseded Jan Kiszka 2 participants 4 messages Sep 15 – Sep 23

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Add SECURITY.md for the CIP kernel

From: Jan Kiszka <[email protected]>

This describes at which time which ares of the CIP kernel are handled by the CIP security team and how to report vulnerabilities to it. It furthermore state the this projects falls under the LF stewardship framework.

---

First proposal. Please review and provide feedback. If we all agree, this should be merged into all CIP kernel branches.

 SECURITY.md | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 SECURITY.md
SECURITY.md new file +37 -0
new file mode 100644
index 0000000000000..f39a0178338ee
@@ -0,0 +1,37 @@
+# Security Policy
+
+This project is supported under the Linux Foundation CRA stewardship framework,
+as described at https://www.linuxfoundation.org/security. Security
+vulnerabilities should be reported through the mechanisms described below,
+which we will coordinate with our CRA steward. For actively exploited
+vulnerabilities and severe incidents that may require CRA escalation, please
+use the project’s emergency security reporting mechanisms as appropriate.
+
+## Security Context
+
+Open source software can be used in various contexts that may go far beyond
+what it was originally designed and also secured for. Therefore, we describe
+here what the CIP kernel maintenance is particularly covering and what is out
+of scope.
+
+Unlike the upstream kernel, the CIP kernel is maintained with the focus on
+architectures and configurations defined by the CIP project members, see
+https://gitlab.com/cip-project/cip-kernel/cip-kernel-config. Vulnerabilities
+found in code paths not covered this way are considered out of scope.
+Furthermore, vulnerabilities that are affecting the upstream Linux kernel as
+well are in the responsibility of the kernel security team, see
+https://www.kernel.org/doc/html/latest/process/security-bugs.html. In scope for
+the CIP kernel are issues caused by patches not found in the corresponding
+stable kernel (linux-6.12.y-cip vs. linux-6.12.y) or that are related to
+missing backports after the corresponding stable kernel went end-of-life.
+
+## Reporting a Vulnerability
+
+Please DO NOT report any potential security vulnerability via a public channel
+(mailing list, gitlab issue etc.). Instead, contact the CIP security team via
[email protected] via email. Please provide a detailed description of
+the issue, the steps to reproduce it, the affected versions and, if already
+available, a proposal for a fix. You should receive a response within 5 working
+days. If the issue is confirmed as a vulnerability by us, we will request a
+CVE, publish the fix and give credits for your report if desired. This project
+follows a 90 day disclosure timeline.
Signature · 1 line
2.47.3
author
#1 lore raw

Sorry for double-posting - connectivity issues suggested it wasn't sent.

Jan

Quoted 60 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This describes at which time which ares of the CIP kernel are handled by the CIP security team and how to report vulnerabilities to it. It furthermore state the this projects falls under the LF stewardship framework.

---

First proposal. Please review and provide feedback. If we all agree, this should be merged into all CIP kernel branches.

 SECURITY.md | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 SECURITY.md
SECURITY.md new file +37 -0
new file mode 100644
index 0000000000000..f39a0178338ee
@@ -0,0 +1,37 @@
+# Security Policy
+
+This project is supported under the Linux Foundation CRA stewardship framework,
+as described at https://www.linuxfoundation.org/security. Security
+vulnerabilities should be reported through the mechanisms described below,
+which we will coordinate with our CRA steward. For actively exploited
+vulnerabilities and severe incidents that may require CRA escalation, please
+use the project’s emergency security reporting mechanisms as appropriate.
+
+## Security Context
+
+Open source software can be used in various contexts that may go far beyond
+what it was originally designed and also secured for. Therefore, we describe
+here what the CIP kernel maintenance is particularly covering and what is out
+of scope.
+
+Unlike the upstream kernel, the CIP kernel is maintained with the focus on
+architectures and configurations defined by the CIP project members, see
+https://gitlab.com/cip-project/cip-kernel/cip-kernel-config. Vulnerabilities
+found in code paths not covered this way are considered out of scope.
+Furthermore, vulnerabilities that are affecting the upstream Linux kernel as
+well are in the responsibility of the kernel security team, see
+https://www.kernel.org/doc/html/latest/process/security-bugs.html. In scope for
+the CIP kernel are issues caused by patches not found in the corresponding
+stable kernel (linux-6.12.y-cip vs. linux-6.12.y) or that are related to
+missing backports after the corresponding stable kernel went end-of-life.
+
+## Reporting a Vulnerability
+
+Please DO NOT report any potential security vulnerability via a public channel
+(mailing list, gitlab issue etc.). Instead, contact the CIP security team via
[email protected] via email. Please provide a detailed description of
+the issue, the steps to reproduce it, the affected versions and, if already
+available, a proposal for a fix. You should receive a response within 5 working
+days. If the issue is confirmed as a vulnerability by us, we will request a
+CVE, publish the fix and give credits for your report if desired. This project
+follows a 90 day disclosure timeline.
Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center
#2 lore raw
In reply to Jan Kiszka

Hi!

Quoted 7 lines

From: Jan Kiszka <[email protected]>

This describes at which time which ares of the CIP kernel are handled by the CIP security team and how to report vulnerabilities to it. It furthermore state the this projects falls under the LF stewardship framework.

Quoted 5 lines

---

First proposal. Please review and provide feedback. If we all agree, this should be merged into all CIP kernel branches.

So... latest kernel already has Documentation/process/security-bugs.rst as an entry point for security bugs. 6.1 and 5.10 have Documentation/admin-guide/security-bugs.rst .

security-bugs.rst tells people to basically do normal bug report, Cc-ing [email protected], avoiding mailing list cc. That will be unencrypted email, and they offer up-to 7 to 14 days of embargo.

The "linux-distros" mailing list is mentioned there.

Quoted 9 lines

+++ b/SECURITY.md

SECURITY.md new file +6 -0
@@ -0,0 +1,37 @@
+# Security Policy
+
+This project is supported under the Linux Foundation CRA stewardship framework,
+as described at https://www.linuxfoundation.org/security. Security
+vulnerabilities should be reported through the mechanisms described below,
+which we will coordinate with our CRA steward. For actively

exploited

I don't believe all readers will know what "CRA" means in this context. I'm not sure, for example, and knowledge will be even lower for people outside EU.

SECURITY.md line 37

Quoted 8 lines
SECURITY.md new file +8 -0
+Please DO NOT report any potential security vulnerability via a public channel
+(mailing list, gitlab issue etc.). Instead, contact the CIP security team via
[email protected] via email. Please provide a detailed description of
+the issue, the steps to reproduce it, the affected versions and, if already
+available, a proposal for a fix. You should receive a response within 5 working
+days. If the issue is confirmed as a vulnerability by us, we will request a
+CVE, publish the fix and give credits for your report if desired. This project
+follows a 90 day disclosure timeline.

Ok, so here's [email protected] , and we make promises different from what [email protected] promises (90 days vs. 7 days, for example). I'd suggest adopting policy from security-bugs.rst with different email address.

Plus there's [email protected], I assume.

I guess I'm quite confused at this point, and whoever hit a security problem is confused, too.

First, what do we people to do? My understaning is:

if bug is actively exploited:
mail [email protected]
elif there's misconfigured gitlab, someone stolen my passwords, malware in the repositories:
mail [email protected]
elif bug is in -cip specific code in kernel:
mail [email protected]
elif bug is in 4.4-cip or 4.19-cip:
mail [email protected]
elif bug is in 5.10-cip or newer:
mail [email protected]
else:

       # there may be bugs in self-maintained kernels, in parts we
       # don't support, such as arch/s390x. What to do with those?
       # Can we document we just don't care? Or do we need to handle
       # them?
       mail [email protected]

Does that make sense? We probably should include real address for [email protected] here.

Best regards,
Pavel

author
#3 lore raw
Quoted 19 lines · Pavel Machek

Hi!

Quoted 7 lines

From: Jan Kiszka <[email protected]>

This describes at which time which ares of the CIP kernel are handled by the CIP security team and how to report vulnerabilities to it. It furthermore state the this projects falls under the LF stewardship framework.

Quoted 5 lines

---

First proposal. Please review and provide feedback. If we all agree, this should be merged into all CIP kernel branches.

So... latest kernel already has Documentation/process/security-bugs.rst as an entry point for security bugs. 6.1 and 5.10 have Documentation/admin-guide/security-bugs.rst .

Quoted 5 lines

security-bugs.rst tells people to basically do normal bug report, Cc-ing [email protected], avoiding mailing list cc. That will be unencrypted email, and they offer up-to 7 to 14 days of embargo.

The "linux-distros" mailing list is mentioned there.

All clear - what is your concrete proposal for us? We are not upstream.

Quoted 14 lines
Quoted 10 lines

+++ b/SECURITY.md

SECURITY.md new file +6 -0
@@ -0,0 +1,37 @@
+# Security Policy
+
+This project is supported under the Linux Foundation CRA stewardship framework,
+as described at https://www.linuxfoundation.org/security. Security
+vulnerabilities should be reported through the mechanisms described below,
+which we will coordinate with our CRA steward. For actively

exploited

I don't believe all readers will know what "CRA" means in this context. I'm not sure, for example, and knowledge will be even lower for people outside EU.

This text is taken 1:1 from the LF template which we cannot modify here. If you have legal or wording concerns, please follow up with suggestions on the internal thread we had.

Quoted 14 lines

SECURITY.md line 37

Quoted 9 lines
SECURITY.md new file +8 -0
+Please DO NOT report any potential security vulnerability via a public channel
+(mailing list, gitlab issue etc.). Instead, contact the CIP security team via
[email protected] via email. Please provide a detailed description of
+the issue, the steps to reproduce it, the affected versions and, if already
+available, a proposal for a fix. You should receive a response within 5 working
+days. If the issue is confirmed as a vulnerability by us, we will request a
+CVE, publish the fix and give credits for your report if desired. This project
+follows a 90 day disclosure timeline.

Ok, so here's [email protected] , and we make promises different from what [email protected] promises (90 days vs. 7 days, for example). I'd suggest adopting policy from security-bugs.rst with different email address.

We can adopt the disclosure timelines and explanations of the kernel here. Concrete ideas what all fits for us are welcome.

Quoted 2 lines

Plus there's [email protected], I assume.

This is internal.

Quoted 10 lines

I guess I'm quite confused at this point, and whoever hit a security problem is confused, too.

First, what do we people to do? My understaning is:

if bug is actively exploited:
mail [email protected]
elif there's misconfigured gitlab, someone stolen my passwords, malware in the repositories:
mail [email protected]

These are our tasks, not the reporter's.

Quoted 4 lines

elif bug is in -cip specific code in kernel:
mail [email protected]
elif bug is in 4.4-cip or 4.19-cip:
mail [email protected]

Yep.

Quoted 2 lines

elif bug is in 5.10-cip or newer:
mail [email protected]

Nope. We surely don't want reporters to go to the upstream list on our downstream kernels. Unless they reproduced with 5.10.y as well.

Quoted 6 lines

else:

       # there may be bugs in self-maintained kernels, in parts we
       # don't support, such as arch/s390x. What to do with those?
       # Can we document we just don't care? Or do we need to handle
       # them?
       mail [email protected]

When in doubt, report to us. That applies to us as well as to externals that are unsure about where is the origin of the issue.

Jan

Quoted 6 lines

Does that make sense? We probably should include real address for [email protected] here.

Best regards,
Pavel

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center