Skip to contentSkip to conversation

Documentation: security-bugs: new updates covering triage and AI

PATCH In review Willy Tarreau 7 participants 37 messages May 9 – Jun 10

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 cover Documentation: security-bugs: new updates covering triage and AI

This series tries to translate recent discussions on the security list on how to better handle reports. It details:
- when not to Cc: the security list
- what classes of bugs do not need to be handled privately
- minimum requirements for AI-assisted reports

As usual, this is probably perfectible but can already help in the short term as we can point it to reporters, so barring any strong disagreement, better continue to proceed in small incremental improvements and observe the effects.

Thanks!
Willy

---
v3:
- comments about choice of words and option enumeration from Shuah
- AI is public, from Linus and Greg
- added extra reviewed-by (Greg, Shuah).
- Leon, I kept your reviewed-by since changes are very minimal and didn't change the initial spirit.

v2:
- fixes for issues reported by Randy
- Greg's ack on the AI part
- reworded the "when to Cc" part based on Greg's feedback (Greg I didn't take your original ack since the wording changed)
- split the threat model into its own document as per Greg's suggestion

---
Willy Tarreau (3):
Documentation: security-bugs: do not systematically Cc the security
team
Documentation: security-bugs: explain what is and is not a security
bug
Documentation: security-bugs: clarify requirements for AI-assisted
reports

 Documentation/process/index.rst         |   1 +
 Documentation/process/security-bugs.rst | 105 ++++++++++-
 Documentation/process/threat-model.rst  | 236 ++++++++++++++++++++++++
 3 files changed, 340 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/process/threat-model.rst
Signature · 1 line
2.52.0
#1 lore raw

PATCH v3 1/3 Documentation: security-bugs: do not systematically Cc the security team

With the increase of automated reports, the security team is dealing with way more messages than really needed. The reporting process works well with most teams so there is no need to systematically involve the security team in reports.

Let's suggest to keep it for small lists of recipients and new reporters only. This should continue to cover the risk of lost messages while reducing the volume from prolific reporters.

---
 Documentation/process/security-bugs.rst | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Documentation/process/security-bugs.rst +9 -1
index 27b028e858610..6dc525858125e 100644
@@ -148,7 +148,15 @@ run additional tests.  Reports where the reporter does not respond promptly
 or cannot effectively discuss their findings may be abandoned if the
 communication does not quickly improve.
 
-The report must be sent to maintainers, with the security team in ``Cc:``.
+The report must be sent to maintainers.  If there are two or fewer
+recipients in your message, you must also always Cc: the Linux kernel
+security team who will ensure the message is delivered to the proper
+people, and will be able to assist small maintainer teams with processes
+they may not be familiar with.  For larger teams, Cc: the Linux kernel
+security team for your first few reports or when seeking specific help,
+such as when resending a message which got no response within a week.
+Once you have become comfortable with the process for a few reports, it is
+no longer necessary to Cc: the security list when sending to large teams.
 The Linux kernel security team can be contacted by email at
 <[email protected]>.  This is a private list of security officers
 who will help verify the bug report and assist developers working on a fix.
Signature · 1 line
2.52.0
#2 lore raw

PATCH v3 2/3 Documentation: security-bugs: explain what is and is not a security bug

In reply to Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

---
 Documentation/process/index.rst         |   1 +
 Documentation/process/security-bugs.rst |  38 +++-
 Documentation/process/threat-model.rst  | 236 ++++++++++++++++++++++++
 3 files changed, 274 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/process/threat-model.rst
Documentation/process/index.rst +1 -0
index dbd6ea16aca70..aa7c959a52b87 100644
@@ -86,6 +86,7 @@ regressions and security problems.
    debugging/index
    handling-regressions
    security-bugs
+   threat-model
    cve
    embargoed-hardware-issues
 
Documentation/process/security-bugs.rst +37 -1
index 6dc525858125e..54260dbfc64d5 100644
@@ -66,6 +66,42 @@ In addition, the following information are highly desirable:
     the issue appear. It is useful to share them, as they can be helpful to
     keep end users protected during the time it takes them to apply the fix.
 
+What qualifies as a security bug
+--------------------------------
+
+It is important that most bugs are handled publicly so as to involve the widest
+possible audience and find the best solution.  By nature, bugs that are handled
+in closed discussions between a small set of participants are less likely to
+produce the best possible fix (e.g., risk of missing valid use cases, limited
+testing abilities).
+
+It turns out that the majority of the bugs reported via the security team are
+just regular bugs that have been improperly qualified as security bugs due to
+a lack of awareness of the Linux kernel's threat model, as described in
+Documentation/process/threat-model.rst, and ought to have been sent through
+the normal channels described in Documentation/admin-guide/reporting-issues.rst
+instead.
+
+The security list exists for urgent bugs that grant an attacker a capability
+they are not supposed to have on a correctly configured production system, and
+can be easily exploited, representing an imminent threat to many users.  Before
+reporting, consider whether the issue actually crosses a trust boundary on such
+a system.
+
+**If you resorted to AI assistance to identify a bug, you must treat it as
+public**. While you may have valid reasons to believe it is not, the security
+team's experience shows that bugs discovered this way systematically surface
+simultaneously across multiple researchers, often on the same day. In this
+case, do not publicly share a reproducer, as this could cause unintended harm;
+just mention that one is available and maintainers might ask for it privately
+if they need it.
+
+If you are unsure whether an issue qualifies, err on the side of reporting
+privately: the security team would rather triage a borderline report than miss
+a real vulnerability.  Reporting ordinary bugs to the security list, however,
+does not make them move faster and consumes triage capacity that other reports
+need.
+
 Identifying contacts
 --------------------
 
@@ -74,7 +110,7 @@ affected subsystem's maintainers and Cc: the Linux kernel security team.  Do
 not send it to a public list at this stage, unless you have good reasons to
 consider the issue as being public or trivial to discover (e.g. result of a
 widely available automated vulnerability scanning tool that can be repeated by
-anyone).
+anyone, or use of AI-based tools).
 
 If you're sending a report for issues affecting multiple parts in the kernel,
 even if they're fairly similar issues, please send individual messages (think
Documentation/process/threat-model.rst new file +236 -0

236 lines not on this page · raw message

Signature · 1 line
2.52.0
reviewer
#3 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 19 lines · Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

Quoted 7 lines
---
  Documentation/process/index.rst         |   1 +
  Documentation/process/security-bugs.rst |  38 +++-
  Documentation/process/threat-model.rst  | 236 ++++++++++++++++++++++++
  3 files changed, 274 insertions(+), 1 deletion(-)

create mode 100644 Documentation/process/threat-model.rst

Looks good to me.

thanks,
-- Shuah

Reviewed-by Greg Kroah-Hartman on v3 2/3
#4 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

In reply to Willy Tarreau
Quoted 19 lines · Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

Quoted 6 lines
---
 Documentation/process/index.rst         |   1 +
 Documentation/process/security-bugs.rst |  38 +++-
 Documentation/process/threat-model.rst  | 236 ++++++++++++++++++++++++
 3 files changed, 274 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/process/threat-model.rst

Looks great, thank you!

Want me to take it through one of my trees now to get it to Linus this week, or should it go through the documentation tree? Either is fine with me.

thanks,

greg k-h

#5 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 27 lines · Greg KH
Quoted 19 lines · Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

Quoted 6 lines
---
 Documentation/process/index.rst         |   1 +
 Documentation/process/security-bugs.rst |  38 +++-
 Documentation/process/threat-model.rst  | 236 ++++++++++++++++++++++++
 3 files changed, 274 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/process/threat-model.rst
Quoted 7 lines

Looks great, thank you!

Want me to take it through one of my trees now to get it to Linus this week, or should it go through the documentation tree? Either is fine with me.

Yes, please take it as usual, it's simpler for me and it will likely allow it to be published ealier, which ultimately should help us faster ;-)

Thanks!
Willy

maintainer
#6 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 5 lines · Willy Tarreau
Quoted 5 lines

Looks great, thank you!

Quoted 7 lines
Quoted 3 lines

Want me to take it through one of my trees now to get it to Linus this week, or should it go through the documentation tree? Either is fine with me.

Yes, please take it as usual, it's simpler for me and it will likely allow it to be published ealier, which ultimately should help us faster ;-)

I can ship stuff Linusward quickly too... :) But it's fine if Greg takes it, of course.

jon

#7 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Hi Jon!

Quoted 11 lines · Jonathan Corbet
Quoted 9 lines · Willy Tarreau
Quoted 8 lines

Looks great, thank you!

Want me to take it through one of my trees now to get it to Linus this week, or should it go through the documentation tree? Either is fine with me.

Quoted 6 lines
Quoted 3 lines

Yes, please take it as usual, it's simpler for me and it will likely allow it to be published ealier, which ultimately should help us faster ;-)

I can ship stuff Linusward quickly too... :) But it's fine if Greg takes it, of course.

Oh that's fine then. I thought you only delivered such updates into next releases. I'm fine with either way of course! Let's pick the path of least effort for each.

Thank you!
Willy

maintainer
#8 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 6 lines · Willy Tarreau
Quoted 2 lines

I can ship stuff Linusward quickly too... :) But it's fine if Greg takes it, of course.

Oh that's fine then. I thought you only delivered such updates into next releases. I'm fine with either way of course! Let's pick the path of least effort for each.

That's my normal procedure, since there are few docs changes that have greater urgency, but I do have a "fixes" branch.

Greg, what's your preference? Unless I hear otherwise, I guess I'll apply it shortly.

Thanks,

jon

#9 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 9 lines · Jonathan Corbet
Quoted 6 lines · Willy Tarreau
Quoted 2 lines

I can ship stuff Linusward quickly too... :) But it's fine if Greg takes it, of course.

Oh that's fine then. I thought you only delivered such updates into next releases. I'm fine with either way of course! Let's pick the path of least effort for each.

Quoted 5 lines

That's my normal procedure, since there are few docs changes that have greater urgency, but I do have a "fixes" branch.

Greg, what's your preference? Unless I hear otherwise, I guess I'll apply it shortly.

Please apply it and take it through your tree, thanks!

greg k-h

#10 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 10 lines · Greg KH
Quoted 9 lines · Jonathan Corbet
Quoted 6 lines · Willy Tarreau
Quoted 2 lines

I can ship stuff Linusward quickly too... :) But it's fine if Greg takes it, of course.

Oh that's fine then. I thought you only delivered such updates into next releases. I'm fine with either way of course! Let's pick the path of least effort for each.

Quoted 7 lines
Quoted 5 lines

That's my normal procedure, since there are few docs changes that have greater urgency, but I do have a "fixes" branch.

Greg, what's your preference? Unless I hear otherwise, I guess I'll apply it shortly.

Please apply it and take it through your tree, thanks!

Thanks to you both!
Willy

maintainer
#11 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

In reply to Willy Tarreau
Quoted 11 lines · Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

One thing here:

[...]

Documentation/process/threat-model.rst line 71

Quoted 7 lines
Documentation/process/threat-model.rst new file +7 -0
+* **Capability-based protection**:
+
+  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+    kernel's configuration, memory nor state, change other users' view of the
+    file system layout, grant any user capabilities they do not have, nor
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

That is pretty demonstrably not true, and will likely elicit challenges at some point. There are a lot of "make me root" capabilities that enable users to do all of those things; consider CAP_DAC_OVERRIDE as an obvious example. I think that just about all of the capabilities will enable at least one of those things - that's why the capabilities exist in the first place. So I think this needs to be written far more generally.

As a lower-priority thing, lockdown mode is meant to at least try to provide some stronger guarantees, and lockdown circumvention seems to be normally be viewed as a security bug. Worth a mention?

Thanks,

jon

#12 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 18 lines · Jonathan Corbet
Quoted 11 lines · Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

One thing here:

[...]

Quoted 15 lines

Documentation/process/threat-model.rst line 71

Quoted 7 lines
Documentation/process/threat-model.rst new file +7 -0
+* **Capability-based protection**:
+
+  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+    kernel's configuration, memory nor state, change other users' view of the
+    file system layout, grant any user capabilities they do not have, nor
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

That is pretty demonstrably not true, and will likely elicit challenges at some point. There are a lot of "make me root" capabilities that enable users to do all of those things; consider CAP_DAC_OVERRIDE as an obvious example. I think that just about all of the capabilities will enable at least one of those things - that's why the capabilities exist in the first place. So I think this needs to be written far more generally.

You are right, there are more capabilities, but we get bug reports all the time that basically come down to "a user with CAP_SYS_ADMIN can go and do..." which are pointless for us to be handling. Just got one a few minutes ago, so LLMs are churning this crap out quite frequently.

So any rewording of this to prevent us from getting these pointless reports would be great.

Quoted 3 lines

As a lower-priority thing, lockdown mode is meant to at least try to provide some stronger guarantees, and lockdown circumvention seems to be normally be viewed as a security bug. Worth a mention?

lockdown issues are best discussed on the list where the lockdown people are as most of us feel that really isn't a "security" thing at all :)

thanks,

greg k-h

#13 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 35 lines · Greg KH
Quoted 18 lines · Jonathan Corbet
Quoted 11 lines · Willy Tarreau

The use of automated tools to find bugs in random locations of the kernel induces a raise of security reports even if most of them should just be reported as regular bugs. This patch is an attempt at drawing a line between what qualifies as a security bug and what does not, hoping to improve the situation and ease decision on the reporter's side.

It defers the enumeration to a new file, threat-model.rst, that tries to enumerate various classes of issues that are and are not security bugs. This should permit to more easily update this file for various subsystem-specific rules without having to revisit the security bug reporting guide.

One thing here:

[...]

Quoted 15 lines

Documentation/process/threat-model.rst line 71

Quoted 7 lines
Documentation/process/threat-model.rst new file +7 -0
+* **Capability-based protection**:
+
+  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+    kernel's configuration, memory nor state, change other users' view of the
+    file system layout, grant any user capabilities they do not have, nor
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

That is pretty demonstrably not true, and will likely elicit challenges at some point. There are a lot of "make me root" capabilities that enable users to do all of those things; consider CAP_DAC_OVERRIDE as an obvious example. I think that just about all of the capabilities will enable at least one of those things - that's why the capabilities exist in the first place. So I think this needs to be written far more generally.

Quoted 7 lines

You are right, there are more capabilities, but we get bug reports all the time that basically come down to "a user with CAP_SYS_ADMIN can go and do..." which are pointless for us to be handling. Just got one a few minutes ago, so LLMs are churning this crap out quite frequently.

So any rewording of this to prevent us from getting these pointless reports would be great.

Honestly we're seeing this through the angle of a patch that lists a single paragraph but the doc is already becoming quite long. I'm a bit afraid of adding long enumerations, or sentences which do not immediately translate to something recognizable by reporters. Not that it cannot be done, but I think the current situation warrants incremental improvements by fixing what doesn't work well. And indeed most of the capabilities based reports currently revolve around "I already have CAP_{SYS,NET}_ADMIN and ...". That might remain a good start for now.

Quoted 6 lines
Quoted 3 lines

As a lower-priority thing, lockdown mode is meant to at least try to provide some stronger guarantees, and lockdown circumvention seems to be normally be viewed as a security bug. Worth a mention?

lockdown issues are best discussed on the list where the lockdown people are as most of us feel that really isn't a "security" thing at all :)

I don't remember when we last got a report for it but it's not frequent. Again, I think we should continue to focus on efficiency, i.e. the number of improperly routed reports we can stop per word written/read.

Willy

maintainer
#14 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 28 lines · Willy Tarreau
Quoted 19 lines · Greg KH
Quoted 17 lines · Jonathan Corbet

Documentation/process/threat-model.rst line 71

Quoted 7 lines · Willy Tarreau
Documentation/process/threat-model.rst new file +7 -0
+* **Capability-based protection**:
+
+  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+    kernel's configuration, memory nor state, change other users' view of the
+    file system layout, grant any user capabilities they do not have, nor
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

That is pretty demonstrably not true, and will likely elicit challenges at some point. There are a lot of "make me root" capabilities that enable users to do all of those things; consider CAP_DAC_OVERRIDE as an obvious example. I think that just about all of the capabilities will enable at least one of those things - that's why the capabilities exist in the first place. So I think this needs to be written far more generally.

Quoted 7 lines

You are right, there are more capabilities, but we get bug reports all the time that basically come down to "a user with CAP_SYS_ADMIN can go and do..." which are pointless for us to be handling. Just got one a few minutes ago, so LLMs are churning this crap out quite frequently.

So any rewording of this to prevent us from getting these pointless reports would be great.

Quoted 8 lines

Honestly we're seeing this through the angle of a patch that lists a single paragraph but the doc is already becoming quite long. I'm a bit afraid of adding long enumerations, or sentences which do not immediately translate to something recognizable by reporters. Not that it cannot be done, but I think the current situation warrants incremental improvements by fixing what doesn't work well. And indeed most of the capabilities based reports currently revolve around "I already have CAP_{SYS,NET}_ADMIN and ...". That might remain a good start for now.

I definitely wouldn't argue for making it longer, and enumerating all of the make-me-root capabilities would be silly. I would consider just replacing CAP_SYS_ADMIN with "elevated capabilities" or some such. That might rule out legitimate reports where some capability provides an access it shouldn't, but I suspect you could live with that :)

Thanks,

jon

#15 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 39 lines · Jonathan Corbet
Quoted 28 lines · Willy Tarreau
Quoted 19 lines · Greg KH
Quoted 17 lines · Jonathan Corbet

Documentation/process/threat-model.rst line 71

Quoted 7 lines · Willy Tarreau
Documentation/process/threat-model.rst new file +7 -0
+* **Capability-based protection**:
+
+  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+    kernel's configuration, memory nor state, change other users' view of the
+    file system layout, grant any user capabilities they do not have, nor
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

That is pretty demonstrably not true, and will likely elicit challenges at some point. There are a lot of "make me root" capabilities that enable users to do all of those things; consider CAP_DAC_OVERRIDE as an obvious example. I think that just about all of the capabilities will enable at least one of those things - that's why the capabilities exist in the first place. So I think this needs to be written far more generally.

Quoted 7 lines

You are right, there are more capabilities, but we get bug reports all the time that basically come down to "a user with CAP_SYS_ADMIN can go and do..." which are pointless for us to be handling. Just got one a few minutes ago, so LLMs are churning this crap out quite frequently.

So any rewording of this to prevent us from getting these pointless reports would be great.

Quoted 8 lines

Honestly we're seeing this through the angle of a patch that lists a single paragraph but the doc is already becoming quite long. I'm a bit afraid of adding long enumerations, or sentences which do not immediately translate to something recognizable by reporters. Not that it cannot be done, but I think the current situation warrants incremental improvements by fixing what doesn't work well. And indeed most of the capabilities based reports currently revolve around "I already have CAP_{SYS,NET}_ADMIN and ...". That might remain a good start for now.

Quoted 5 lines

I definitely wouldn't argue for making it longer, and enumerating all of the make-me-root capabilities would be silly. I would consider just replacing CAP_SYS_ADMIN with "elevated capabilities" or some such. That might rule out legitimate reports where some capability provides an access it shouldn't, but I suspect you could live with that :)

I think it could indeed work like this, without denaturating the rest of the paragraph and having broader coverage. Do you think you could amend/update it ? I'm not trying to add you any burden, it's just that it will take me more time before I provide an update :-/

Thanks,
Willy

maintainer
#16 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 8 lines · Willy Tarreau
Quoted 5 lines · Jonathan Corbet

I definitely wouldn't argue for making it longer, and enumerating all of the make-me-root capabilities would be silly. I would consider just replacing CAP_SYS_ADMIN with "elevated capabilities" or some such. That might rule out legitimate reports where some capability provides an access it shouldn't, but I suspect you could live with that :)

Quoted 4 lines

I think it could indeed work like this, without denaturating the rest of the paragraph and having broader coverage. Do you think you could amend/update it ? I'm not trying to add you any burden, it's just that it will take me more time before I provide an update :-/

How's the following?

(While I was there, I noticed that threat-model.rst has no SPDX line; what's your preference there?)

Thanks,

jon

From 1e15a25142583e312dcc504b0279d47508cbfdab Mon Sep 17 00:00:00 2001
From: Jonathan Corbet <[email protected]>
Date: Wed, 13 May 2026 14:58:53 -0600
Subject: [PATCH 2/2] docs: threat-model: don't limit root capabilities to
CAP_SYS_ADMIN

The threat-model document says that only users with CAP_SYS_ADMIN can carry out a number of admin-level tasks, but there are numerous capabilities that can confer that sort of power. Generalize the text slightly to make it clear that CAP_SYS_ADMIN is not the only all-powerful capability.

---
 Documentation/process/threat-model.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/process/threat-model.rst +2 -1
index 91da52f7114fd..f177b8d3c1caf 100644
@@ -62,7 +62,8 @@ on common processors featuring privilege levels and memory management units:
 
 * **Capability-based protection**:
 
-  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+  * users not having elevated capabilities (including but not limited to
+    CAP_SYS_ADMIN) may not alter the
     kernel's configuration, memory nor state, change other users' view of the
     file system layout, grant any user capabilities they do not have, nor
     affect the system's availability (shutdown, reboot, panic, hang, or making
Signature · 1 line
2.53.0
author Acked-by
#17 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Hi Jon,

Quoted 10 lines · Jonathan Corbet
Quoted 8 lines · Willy Tarreau
Quoted 5 lines · Jonathan Corbet

I definitely wouldn't argue for making it longer, and enumerating all of the make-me-root capabilities would be silly. I would consider just replacing CAP_SYS_ADMIN with "elevated capabilities" or some such. That might rule out legitimate reports where some capability provides an access it shouldn't, but I suspect you could live with that :)

Quoted 6 lines
Quoted 4 lines

I think it could indeed work like this, without denaturating the rest of the paragraph and having broader coverage. Do you think you could amend/update it ? I'm not trying to add you any burden, it's just that it will take me more time before I provide an update :-/

How's the following?

Looks good, thank you! In case this is needed:

Quoted 2 lines

(While I was there, I noticed that threat-model.rst has no SPDX line; what's your preference there?)

I didn't notice any was needed, I tried to get inspiration from other files for the format (I'm still not familiar with the rst format though this time I could successfully install the tools). Same for the label at the top BTW, I just did what I found somewhere else, probably security-bugs.rst which is similar (no SPDX line and has a label). So regarding SPDX, I do not have any preference. If one is needed, let's pick what's used by default, I do not care, as long as it allows the doc to be published.

Thanks,
Willy

Quoted 36 lines

Thanks,

jon

Quoted 1 line

From 1e15a25142583e312dcc504b0279d47508cbfdab Mon Sep 17 00:00:00 2001

From: Jonathan Corbet <[email protected]>
Date: Wed, 13 May 2026 14:58:53 -0600
Subject: [PATCH 2/2] docs: threat-model: don't limit root capabilities to
CAP_SYS_ADMIN

The threat-model document says that only users with CAP_SYS_ADMIN can carry out a number of admin-level tasks, but there are numerous capabilities that can confer that sort of power. Generalize the text slightly to make it clear that CAP_SYS_ADMIN is not the only all-powerful capability.

---
 Documentation/process/threat-model.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/process/threat-model.rst +2 -1
index 91da52f7114fd..f177b8d3c1caf 100644
@@ -62,7 +62,8 @@ on common processors featuring privilege levels and memory management units:
 
 * **Capability-based protection**:
 
-  * users not having the ``CAP_SYS_ADMIN`` capability may not alter the
+  * users not having elevated capabilities (including but not limited to
+    CAP_SYS_ADMIN) may not alter the
     kernel's configuration, memory nor state, change other users' view of the
     file system layout, grant any user capabilities they do not have, nor
     affect the system's availability (shutdown, reboot, panic, hang, or making
Signature · 1 line
2.53.0
maintainer
#18 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 6 lines · Willy Tarreau
Quoted 2 lines

(While I was there, I noticed that threat-model.rst has no SPDX line; what's your preference there?)

I didn't notice any was needed, I tried to get inspiration from other files for the format (I'm still not familiar with the rst format though this time I could successfully install the tools).

In theory every file in the kernel tree is supposed to have one; many documentation files lag a bit behind on that front, but we try...

Quoted 6 lines

Same for
the label at the top BTW, I just did what I found somewhere else, probably security-bugs.rst which is similar (no SPDX line and has a label). So regarding SPDX, I do not have any preference. If one is needed, let's pick what's used by default, I do not care, as long as it allows the doc to be published.

The top-of-file label got started somewhere and has been cargo-culted extensively since then; it has proved hard to eradicate.

As for SPDX, the most common is the basic:

.. SPDX-License-Identifier: GPL-2.0

Thanks,

jon

#19 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 11 lines · Jonathan Corbet
Quoted 6 lines · Willy Tarreau
Quoted 2 lines

(While I was there, I noticed that threat-model.rst has no SPDX line; what's your preference there?)

I didn't notice any was needed, I tried to get inspiration from other files for the format (I'm still not familiar with the rst format though this time I could successfully install the tools).

In theory every file in the kernel tree is supposed to have one; many documentation files lag a bit behind on that front, but we try...

OK thanks for the background.

Quoted 9 lines
Quoted 6 lines

Same for
the label at the top BTW, I just did what I found somewhere else, probably security-bugs.rst which is similar (no SPDX line and has a label). So regarding SPDX, I do not have any preference. If one is needed, let's pick what's used by default, I do not care, as long as it allows the doc to be published.

The top-of-file label got started somewhere and has been cargo-culted extensively since then; it has proved hard to eradicate.

I'm not surprised, everyone likely does like me: look at another file to see what it should look like, and does it again. Apparently in security-bugs it was added 10 years ago by this:

609d99a3b72e3 ("Documentation/HOWTO: add cross-references to other documents")

Quoted 3 lines

As for SPDX, the most common is the basic:

.. SPDX-License-Identifier: GPL-2.0

This works for me for the new file. For existing security-bugs, why not do the same at the same time ? Before SPDX tags it has been covered by GPL-2.0 as well via the COPYING file, and further contributions did not change its license. And in the worst case a total of 10 people touched the 3 names of that file over its Git history, I doubt there would be too much resistance against an update.

Willy

#20 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

In reply to Willy Tarreau

Willy Tarreau <[email protected]>:

Quoted 1 line

+in a way that allows multiple local users to get a fair share of the available

Your "security-bugs.rst" says that we should consult "threat-model.rst" to determine whether a bug should be sent to secret mailing list.

And "threat-model.rst" says that kernel gives everyone "fair share" of resources.

This can be interpreted so: if scheduler is not fair enough, then this is security bug and should be reported to secret mailing list. I don't think this is what you meant.

Documentation/process/threat-model.rst line 37

Quoted 6 lines
Documentation/process/threat-model.rst new file +6 -0
+When hardware fails to maintain its specified isolation (e.g., CPU bugs,
+side-channels, hardware response to unexpected inputs), the kernel will usually
+attempt to implement reasonable mitigations. These are best-effort measures
+intended to reduce the attack surface or elevate the cost of an attack within
+the limits of the hardware's facilities; they do not constitute a
+kernel-provided safety guarantee.

"best-effort measures" and "they do not constitute a kernel-provided safety guarantee" can be interpreted so: if someone finds yet another Meltdown-like side-channel CPU bug, then this is not security bug, and should be reported openly. I don't think this is what you meant.

Documentation/process/threat-model.rst line 71

Quoted 2 lines
Documentation/process/threat-model.rst new file +2 -0
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

So if unprivileged process can crash system, then this is security bug?

Also I'm not sure "unbounded resource exhaustion" is correct here. As well as I understand, by default kernel and distros don't set any memory limits or limits for number of processes for unprivileged processes, so unprivileged process can easily cause resource exhaustion by allocating a lot of memory or by fork bomb.

So, I think you should instead say that unprivileged process, which has memory limit (and other limits) set using cgroups, should not be able to cause resource exhaustion.

Documentation/process/threat-model.rst line 88

Quoted 2 lines
Documentation/process/threat-model.rst new file +2 -0
+are designed to be accessible to regular local users with a low risk (e.g.
+kernel logs via ``/proc/kmsg``), some would expose enough information to

/proc/kmsg has rights "-r--------", so I think there is error here.

---------------

Finally, I have questions:

- If unprivileged user created process, which is impossible to kill by privileged process, is this security bug?

- If unprivileged user prevents privileged user from suspending system, is this security bug?

Signature · 1 line
Askar Safin
#21 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 6 lines · Askar Safin

Willy Tarreau <[email protected]>:

Quoted 1 line

+in a way that allows multiple local users to get a fair share of the available

Your "security-bugs.rst" says that we should consult "threat-model.rst" to determine whether a bug should be sent to secret mailing list.

Quoted 6 lines

And "threat-model.rst" says that kernel gives everyone "fair share" of resources.

This can be interpreted so: if scheduler is not fair enough, then this is security bug and should be reported to secret mailing list. I don't think this is what you meant.

Within reason of course, please use your best judgement.

Quoted 11 lines

Documentation/process/threat-model.rst line 37

Quoted 6 lines
Documentation/process/threat-model.rst new file +6 -0
+When hardware fails to maintain its specified isolation (e.g., CPU bugs,
+side-channels, hardware response to unexpected inputs), the kernel will usually
+attempt to implement reasonable mitigations. These are best-effort measures
+intended to reduce the attack surface or elevate the cost of an attack within
+the limits of the hardware's facilities; they do not constitute a
+kernel-provided safety guarantee.

"best-effort measures" and "they do not constitute a kernel-provided safety guarantee" can be interpreted so: if someone finds yet another Meltdown-like side-channel CPU bug, then this is not security bug, and should be reported openly. I don't think this is what you meant.

Again, please be reasonable. Hardware bugs have their own reporting process that we have well documented.

Quoted 4 lines

Documentation/process/threat-model.rst line 71

Quoted 2 lines
Documentation/process/threat-model.rst new file +2 -0
+    affect the system's availability (shutdown, reboot, panic, hang, or making
+    the system unresponsive via unbounded resource exhaustion).

So if unprivileged process can crash system, then this is security bug?

Yes.

Quoted 1 line

Also I'm not sure "unbounded resource exhaustion" is correct here.

Why not?

Quoted 4 lines

As well as I understand, by default kernel and distros don't set any memory limits or limits for number of processes for unprivileged processes, so unprivileged process can easily cause resource exhaustion by allocating a lot of memory or by fork bomb.

That's a distro problem, not a kernel problem.

Quoted 3 lines

So, I think you should instead say that unprivileged process, which has memory limit (and other limits) set using cgroups, should not be able to cause resource exhaustion.

Patches are always gladly accepted. But again, be reasonable please, this isn't a legal document :)

Quoted 11 lines

Documentation/process/threat-model.rst line 88

Quoted 2 lines
Documentation/process/threat-model.rst new file +2 -0
+are designed to be accessible to regular local users with a low risk (e.g.
+kernel logs via ``/proc/kmsg``), some would expose enough information to

/proc/kmsg has rights "-r--------", so I think there is error here.

---------------

Finally, I have questions:

- If unprivileged user created process, which is impossible to kill by privileged process, is this security bug?

Sounds like a bug, we can deal with it that way.

Quoted 2 lines

- If unprivileged user prevents privileged user from suspending system, is this security bug?

Physical access of suspending a machine feels like an odd threat model to be worried about :)

If you have bugs that you feel are security issues like the above, great, please report them and we can take them on a case-by-case basis.

This document is meant as a starting point for that, and to help remove a huge number of "this is a security bug!" reports that we keep getting that are obviously not that.

thanks,

greg k-h

#22 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Thank you for answer!

Quoted 5 lines · Greg KH
Quoted 2 lines

- If unprivileged user prevents privileged user from suspending system, is this security bug?

Physical access of suspending a machine feels like an odd threat model to be worried about :)

I think you didn't understand me here. I meant the following situation:
unprivileged user without physical access was somehow able to prevent privileged user with physical access from suspending or hibernating the system.

Signature · 1 line
Askar Safin
#23 lore raw

Re: [PATCH v3 2/3] Documentation: security-bugs: explain what is and is not a security bug

Quoted 6 lines · Askar Safin

Thank you for answer!

Quoted 3 lines · Greg KH
Quoted 2 lines

- If unprivileged user prevents privileged user from suspending system, is this security bug?

Quoted 7 lines
Quoted 2 lines

Physical access of suspending a machine feels like an odd threat model to be worried about :)

I think you didn't understand me here. I meant the following situation:
unprivileged user without physical access was somehow able to prevent privileged user with physical access from suspending or hibernating the system.

If you can find a bug like this, sure, we'll be glad to review the fix for it. As for it being a "security" issue, that will depend on the specific case as "can not suspend" doesn't seem to fix the definition of "vulnerability" to me.

thanks,

greg k-h

#24 lore raw

PATCH v3 3/3 Documentation: security-bugs: clarify requirements for AI-assisted reports

In reply to Willy Tarreau

AI tools are increasingly used to assist in bug discovery. While these tools can identify valid issues, reports that are submitted without manual verification often lack context, contain speculative impact assessments, or include unnecessary formatting. Such reports increase triage effort, waste maintainers' time and may be ignored.

Reports where the reporter has verified the issue and the proposed fix typically meet quality standards. This documentation outlines specific requirements for length, formatting, and impact evaluation to reduce the effort needed to deal with these reports.

---
 Documentation/process/security-bugs.rst | 57 +++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
Documentation/process/security-bugs.rst +57 -0
index 54260dbfc64d5..f85c65f31f12f 100644
@@ -167,6 +167,63 @@ the Linux kernel security team only.  Your message will be triaged, and you
 will receive instructions about whom to contact, if needed.  Your message may
 equally be forwarded as-is to the relevant maintainers.
 
+Responsible use of AI to find bugs
+----------------------------------
+
+A significant fraction of bug reports submitted to the security team are
+actually the result of code reviews assisted by AI tools. While this can be an
+efficient means to find bugs in rarely explored areas, it causes an overload on
+maintainers, who are sometimes forced to ignore such reports due to their poor
+quality or accuracy. As such, reporters must be particularly cautious about a
+number of points which tend to make these reports needlessly difficult to
+handle:
+
+  * **Length**: AI-generated reports tend to be excessively long, containing
+    multiple sections and excessive detail. This makes it difficult to spot
+    important information such as affected files, versions, and impact. Please
+    ensure that a clear summary of the problem and all critical details are
+    presented first. Do not require triage engineers to scan multiple pages of
+    text. Configure your tools to produce concise, human-style reports.
+
+  * **Formatting**: Most AI-generated reports are littered with Markdown tags.
+    These decorations complicate the search for important information and do
+    not survive the quoting processes involved in forwarding or replying.
+    Please **always convert your report to plain text** without any formatting
+    decorations before sending it.
+
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences. This adds noise and complicates triage. Please stick to
+    verifiable facts (e.g., "this bug permits any user to gain CAP_NET_ADMIN")
+    without enumerating speculative implications. Have your tool read this
+    documentation as part of the evaluation process.
+
+  * **Reproducer**: AI-based tools are often capable of generating reproducers.
+    Please always ensure your tool provides one and **test it thoroughly**. If
+    the reproducer does not work, or if the tool cannot produce one, the
+    validity of the report should be seriously questioned. Note that since the
+    report will be posted to a public list, the reproducer should only be
+    shared upon maintainers' request.
+
+  * **Propose a Fix**: Many AI tools are actually better at writing code than
+    evaluating it. Please ask your tool to propose a fix and **test it** before
+    reporting the problem. If the fix cannot be tested because it relies on
+    rare hardware or almost extinct network protocols, the issue is likely not
+    a security bug. In any case, if a fix is proposed, it must adhere to
+    Documentation/process/submitting-patches.rst and include a 'Fixes:' tag
+    designating the commit that introduced the bug.
+
+Failure to consider these points exposes your report to the risk of being
+ignored.
+
+Use common sense when evaluating the report. If the affected file has not been
+touched for more than one year and is maintained by a single individual, it is
+likely that usage has declined and exposed users are virtually non-existent
+(e.g., drivers for very old hardware, obsolete filesystems). In such cases,
+there is no need to consume a maintainer's time with an unimportant report. If
+the issue is clearly trivial and publicly discoverable, you should report it
+directly to the public mailing lists.
+
 Sending the report
 ------------------
 
Signature · 1 line
2.52.0
maintainer
#25 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

Quoted 11 lines · Willy Tarreau

AI tools are increasingly used to assist in bug discovery. While these tools can identify valid issues, reports that are submitted without manual verification often lack context, contain speculative impact assessments, or include unnecessary formatting. Such reports increase triage effort, waste maintainers' time and may be ignored.

Reports where the reporter has verified the issue and the proposed fix typically meet quality standards. This documentation outlines specific requirements for length, formatting, and impact evaluation to reduce the effort needed to deal with these reports.

Quoted 7 lines
---
 Documentation/process/security-bugs.rst | 57 +++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

One nit:

Documentation/process/security-bugs.rst the Linux kernel security team only. Your message will be triaged, and you

Quoted 3 lines
Documentation/process/security-bugs.rst +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Thanks,

jon

#26 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

Quoted 21 lines · Jonathan Corbet
Quoted 11 lines · Willy Tarreau

AI tools are increasingly used to assist in bug discovery. While these tools can identify valid issues, reports that are submitted without manual verification often lack context, contain speculative impact assessments, or include unnecessary formatting. Such reports increase triage effort, waste maintainers' time and may be ignored.

Reports where the reporter has verified the issue and the proposed fix typically meet quality standards. This documentation outlines specific requirements for length, formatting, and impact evaluation to reduce the effort needed to deal with these reports.

Quoted 7 lines
---
 Documentation/process/security-bugs.rst | 57 +++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
Quoted 8 lines

One nit:

Documentation/process/security-bugs.rst the Linux kernel security team only. Your message will be triaged, and you

Quoted 3 lines
Documentation/process/security-bugs.rst +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

thanks,

greg k-h

#27 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

Quoted 11 lines · Greg KH
Quoted 8 lines

One nit:

Documentation/process/security-bugs.rst the Linux kernel security team only. Your message will be triaged, and you

Quoted 3 lines
Documentation/process/security-bugs.rst +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

It's in the same patch, I think Jon was sarcastic here. I thought I had addressed that one but apparently I was wrong :-/

willy

maintainer
#28 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

Quoted 7 lines · Willy Tarreau
Quoted 6 lines · Greg KH
Quoted 6 lines

One nit:

Quoted 3 lines
Documentation/process/security-bugs.rst +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

It's in the same patch, I think Jon was sarcastic here. I thought I had addressed that one but apparently I was wrong :-/

I'm just saying that this particular text should link to that document, don't make readers go searching for it. I can certainly add a patch doing that if you like.

Thanks,

jon

#29 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

Quoted 15 lines · Jonathan Corbet
Quoted 13 lines · Willy Tarreau
Quoted 11 lines · Greg KH
Quoted 8 lines

One nit:

Documentation/process/security-bugs.rst the Linux kernel security team only. Your message will be triaged, and you

Quoted 3 lines
Documentation/process/security-bugs.rst +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

Quoted 6 lines
Quoted 2 lines

It's in the same patch, I think Jon was sarcastic here. I thought I had addressed that one but apparently I was wrong :-/

I'm just saying that this particular text should link to that document, don't make readers go searching for it. I can certainly add a patch doing that if you like.

That would be kind, thank you Jon. Feel free to modify my patch if you haven't published it if you prefer.

Thanks!
willy

maintainer
#30 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

In reply to Jonathan Corbet
Quoted 15 lines · Jonathan Corbet
Quoted 13 lines · Willy Tarreau
Quoted 11 lines · Greg KH
Quoted 8 lines

One nit:

Review

Quoted 3 lines
(quoted diff) +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

Quoted 6 lines
Quoted 2 lines

It's in the same patch, I think Jon was sarcastic here. I thought I had addressed that one but apparently I was wrong :-/

I'm just saying that this particular text should link to that document, don't make readers go searching for it. I can certainly add a patch doing that if you like.

I was thinking something like this.

jon

From 3f02a3c190bab6b54e2a250ead0c7408af1a3c51 Mon Sep 17 00:00:00 2001
From: Jonathan Corbet <[email protected]>
Date: Wed, 13 May 2026 14:51:29 -0600
Subject: [PATCH 1/2] docs: security-bugs: add a link to the threat-model
documentation

Rather than make readers search for this document, just a link to it where it is referenced.

(While I was at it, I removed the unused and unneeded _threatmodel label from the top of threat-model.rst).

---
 Documentation/process/security-bugs.rst | 13 +++++++------
 Documentation/process/threat-model.rst  |  2 --
 2 files changed, 7 insertions(+), 8 deletions(-)
Documentation/process/security-bugs.rst +7 -6
index f85c65f31f12f..3c51ddde31dd9 100644
@@ -191,12 +191,13 @@ handle:
     Please **always convert your report to plain text** without any formatting
     decorations before sending it.
 
-  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
-    the kernel's threat model and go to great lengths inventing theoretical
-    consequences. This adds noise and complicates triage. Please stick to
-    verifiable facts (e.g., "this bug permits any user to gain CAP_NET_ADMIN")
-    without enumerating speculative implications. Have your tool read this
-    documentation as part of the evaluation process.
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding
+    of the kernel's threat model (see Documentation/process/threat-model.rst)
+    and go to great lengths inventing theoretical consequences. This adds
+    noise and complicates triage. Please stick to verifiable facts (e.g.,
+    "this bug permits any user to gain CAP_NET_ADMIN") without enumerating
+    speculative implications. Have your tool read this documentation as
+    part of the evaluation process.
 
   * **Reproducer**: AI-based tools are often capable of generating reproducers.
     Please always ensure your tool provides one and **test it thoroughly**. If
Documentation/process/threat-model.rst +0 -2
index ecb432390e792..91da52f7114fd 100644
@@ -1,5 +1,3 @@
-.. _threatmodel:
-
 The Linux Kernel threat model
 =============================
 
Signature · 1 line
2.53.0
author Acked-by
#31 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

Quoted 20 lines · Jonathan Corbet
Quoted 18 lines · Jonathan Corbet
Quoted 15 lines · Willy Tarreau
Quoted 11 lines · Greg KH
Quoted 8 lines

One nit:

Review

Quoted 3 lines
(quoted diff) +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

It's in the same patch, I think Jon was sarcastic here. I thought I had addressed that one but apparently I was wrong :-/

Quoted 6 lines
Quoted 3 lines

I'm just saying that this particular text should link to that document, don't make readers go searching for it. I can certainly add a patch doing that if you like.

I was thinking something like this.
jon

Indeed, looks good like this as it won't hide the file name from the link. In case you'd want it:

Thank you!
Willy

Quoted 55 lines
Quoted 1 line

From 3f02a3c190bab6b54e2a250ead0c7408af1a3c51 Mon Sep 17 00:00:00 2001

From: Jonathan Corbet <[email protected]>
Date: Wed, 13 May 2026 14:51:29 -0600
Subject: [PATCH 1/2] docs: security-bugs: add a link to the threat-model
documentation

Rather than make readers search for this document, just a link to it where it is referenced.

(While I was at it, I removed the unused and unneeded _threatmodel label from the top of threat-model.rst).

---
 Documentation/process/security-bugs.rst | 13 +++++++------
 Documentation/process/threat-model.rst  |  2 --
 2 files changed, 7 insertions(+), 8 deletions(-)
Documentation/process/security-bugs.rst +7 -6
index f85c65f31f12f..3c51ddde31dd9 100644
@@ -191,12 +191,13 @@ handle:
     Please **always convert your report to plain text** without any formatting
     decorations before sending it.
 
-  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
-    the kernel's threat model and go to great lengths inventing theoretical
-    consequences. This adds noise and complicates triage. Please stick to
-    verifiable facts (e.g., "this bug permits any user to gain CAP_NET_ADMIN")
-    without enumerating speculative implications. Have your tool read this
-    documentation as part of the evaluation process.
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding
+    of the kernel's threat model (see Documentation/process/threat-model.rst)
+    and go to great lengths inventing theoretical consequences. This adds
+    noise and complicates triage. Please stick to verifiable facts (e.g.,
+    "this bug permits any user to gain CAP_NET_ADMIN") without enumerating
+    speculative implications. Have your tool read this documentation as
+    part of the evaluation process.
 
   * **Reproducer**: AI-based tools are often capable of generating reproducers.
     Please always ensure your tool provides one and **test it thoroughly**. If
Documentation/process/threat-model.rst +0 -2
index ecb432390e792..91da52f7114fd 100644
@@ -1,5 +1,3 @@
-.. _threatmodel:
-
 The Linux Kernel threat model
 =============================
 
Signature · 1 line
2.53.0
Reviewed-by Greg Kroah-Hartman
#32 lore raw

Re: [PATCH v3 3/3] Documentation: security-bugs: clarify requirements for AI-assisted reports

In reply to Jonathan Corbet
Quoted 37 lines · Jonathan Corbet
Quoted 15 lines · Jonathan Corbet
Quoted 13 lines · Willy Tarreau
Quoted 11 lines · Greg KH
Quoted 8 lines

One nit:

Review

Quoted 3 lines
(quoted diff) +3 -0
+  * **Impact Evaluation**: Many AI-generated reports lack an understanding of
+    the kernel's threat model and go to great lengths inventing theoretical
+    consequences.

If only we had a shiny new document describing that threat model that we could reference here... :)

Ah yes, a link to that would make things better, but don't we have that elsewhere in this series?

Quoted 6 lines
Quoted 2 lines

It's in the same patch, I think Jon was sarcastic here. I thought I had addressed that one but apparently I was wrong :-/

I'm just saying that this particular text should link to that document, don't make readers go searching for it. I can certainly add a patch doing that if you like.

I was thinking something like this.

jon

Quoted 1 line

From 3f02a3c190bab6b54e2a250ead0c7408af1a3c51 Mon Sep 17 00:00:00 2001

From: Jonathan Corbet <[email protected]>
Date: Wed, 13 May 2026 14:51:29 -0600
Subject: [PATCH 1/2] docs: security-bugs: add a link to the threat-model
documentation

Rather than make readers search for this document, just a link to it where it is referenced.

Quoted 8 lines

(While I was at it, I removed the unused and unneeded _threatmodel label from the top of threat-model.rst).

---
 Documentation/process/security-bugs.rst | 13 +++++++------
 Documentation/process/threat-model.rst  |  2 --
 2 files changed, 7 insertions(+), 8 deletions(-)

Looks good, thanks!

#33 lore raw
In reply to Willy Tarreau
Quoted 13 lines · Willy Tarreau

This series tries to translate recent discussions on the security list on how to better handle reports. It details:
- when not to Cc: the security list
- what classes of bugs do not need to be handled privately
- minimum requirements for AI-assisted reports

As usual, this is probably perfectible but can already help in the short term as we can point it to reporters, so barring any strong disagreement, better continue to proceed in small incremental improvements and observe the effects.

Thanks!
Willy

<...>

Quoted 2 lines

- Leon, I kept your reviewed-by since changes are very minimal and didn't change the initial spirit.

Thanks. The intent is the same, and I'm not the right person to argue over the precise wording anyway.

#34 lore raw
Quoted 15 lines · Leon Romanovsky
Quoted 6 lines · Willy Tarreau

This series tries to translate recent discussions on the security list on how to better handle reports. It details:
- when not to Cc: the security list
- what classes of bugs do not need to be handled privately
- minimum requirements for AI-assisted reports

Quoted 7 lines

As usual, this is probably perfectible but can already help in the short term as we can point it to reporters, so barring any strong disagreement, better continue to proceed in small incremental improvements and observe the effects.

Thanks!
Willy

Quoted 7 lines

<...>

Quoted 2 lines

- Leon, I kept your reviewed-by since changes are very minimal and didn't change the initial spirit.

Thanks. The intent is the same, and I'm not the right person to argue over the precise wording anyway.

That was also my understanding, but thanks for confirming!

willy

maintainer
#35 lore raw
In reply to Willy Tarreau
Quoted 10 lines · Willy Tarreau

This series tries to translate recent discussions on the security list on how to better handle reports. It details:
- when not to Cc: the security list
- what classes of bugs do not need to be handled privately
- minimum requirements for AI-assisted reports

As usual, this is probably perfectible but can already help in the short term as we can point it to reporters, so barring any strong disagreement, better continue to proceed in small incremental improvements and observe the effects.

OK, I've applied the series to docs-fixes; after a short exposure in linux-next I'll ship it Linusward.

I have a couple of comments on the individual changes that might merit an eventual add-on patch.

Thanks,

jon

#36 lore raw
Quoted 8 lines · Jonathan Corbet
Quoted 6 lines · Willy Tarreau

This series tries to translate recent discussions on the security list on how to better handle reports. It details:
- when not to Cc: the security list
- what classes of bugs do not need to be handled privately
- minimum requirements for AI-assisted reports

Quoted 7 lines
Quoted 4 lines

As usual, this is probably perfectible but can already help in the short term as we can point it to reporters, so barring any strong disagreement, better continue to proceed in small incremental improvements and observe the effects.

OK, I've applied the series to docs-fixes; after a short exposure in linux-next I'll ship it Linusward.

Thank you!

Quoted 2 lines

I have a couple of comments on the individual changes that might merit an eventual add-on patch.

Yes, feel free to suggest. I'm not fond of how the pub/priv decision is stretched into multiple sections and I'd like to rework it to have a dedicate section "public or private" which describes how to take the decision then later we can explain whom to contact depending on this choice. It's not much different from what we have but it would clarify certain points. So in any case I think I'll propose an update later, so anything you can propose to improve the situation is more than welcome!

Thanks!
Willy