Skip to contentSkip to conversation

Scaling our security process

MAINTAINERS SUMMIT Sasha Levin 5 participants 11 messages Jul 14 – Jul 27

lore
Share & tools
lore
#0 lore raw

Hi folks,

As everyone might have noticed by now, LLMs are finding real, exploitable bugs at a growing rate, and the same tools are available to people who won't report what they find. At the same time we're getting a stream of plausible looking AI slop that wastes reviewer time.

Clearly this is not kernel-specific, but given where the kernel sits in the stack this creates more of a problem for us. We spent decades saying security by obscurity doesn't work and that being open makes us more secure. In practice we leaned a bit on a version of it anyway: security by complexity. The code was public, but it was complicated enough, and there was so much of it, that finding a serious bug took rare skills and a lot of time. AI removes that barrier. What's left is how fast we triage, fix, and ship.

With that in mind, I'd like to discuss:

1. Does security@ still work? It was built for a handful of carefully written reports, handled start to finish by a small group of volunteers. That process never really scaled before, and it won't scale now. Does it make sense to separate the roles? let AI driven tooling handle intake, filtering, and reproduction, and keep the humans for developing and coordinating fixes for reports that survive triage?

2. Where does stable@ fit? Landing a fix upstream and calling it a day helps nobody. Our users don't run mainline; they benefit when the fix shows up in the kernel they actually run. Today a fix that goes through security@ often lands in Linus's tree with no stable tag and no backport, sometimes not even to recent LTS trees. If a security fix isn't in the LTS trees, is the bug actually fixed? And should folks who care about these backports be in the loop while the fix is being developed instead of finding out after the fact?

3. Do we want some sort of a shared distro security backport list? Every major distro pays people to backport security fixes, and they all do the same work in parallel behind separate walls. A list where upstream and distro security teams write and review backports together, would pool that effort and land fixes where users are. Sure, it allows for more leaks, but we end up causing these leaks ourselves when we release a fix without working backports.

4. How can CVE tracking better serve our users? We assign a lot of CVEs, and the common complaint is that consumers can't tell which ones matter for the kernel they actually run. The CVE program's SADP pilot points at one answer:
downstream suppliers attach "affected / not affected / fixed in X" status directly to upstream CVE records. Do we want to push the ecosystem in that direction, and what should the kernel CNA provide to make it easy?

5. Do we need a policy on AI generated reports and patches? Other projects have one. Can we tell AI assisted quality work from slop without burning out the people doing triage?

I'd really want to steer away from the "AI is good/evil" discussion, and just focus on the reality we have all seen through the past year or so.

Signature · 2 lines
Thanks,
Sasha
#1 lore raw

One comment about something I've been working on lately:

Quoted 6 lines · Sasha Levin

1. Does security@ still work? It was built for a handful of carefully written reports, handled start to finish by a small group of volunteers. That process never really scaled before, and it won't scale now. Does it make sense to separate the roles? let AI driven tooling handle intake, filtering, and reproduction, and keep the humans for developing and coordinating fixes for reports that survive triage?

It was not really "built" for anything other than a place that people could report security bugs and get them fixed. We have changed the way it works over the past months, and for right now, things seem _MUCH_ smoother than ever before.

Also, we are getting funding "any day now" to have someone work full time on this, to be the "point person" for the alias to help when things fall through the cracks, as sometimes happens. We have verbal guarantees of at least 6 months funding, and if that goes well, it should be extended.

LLMs really can't be used for security@ EXCEPT if you use a local model, due to the "interesting" legal rules that security@ has to operate under. We've been using it there for a while now, when needed, and it has helped to spit out "first cut" patches for reports that do not contain a patch to start with. That usage is gone way down now that we ask for a patch in the intial report as all of these reports are being generated by a LLM anyway.

And attempting to use a LLM to handle intake and filtering just doesn't work. Many people who have experience with being on the recieving end of such a feed have agreed, that isn't the real problem with getting this feed at all. The real problem is unresponsive reporters, and "middlemen" that like to put their company inbetween the reporter of the bug, and us, the fixer of the bug. A LLM just can't do anything there, but I'll let the person who ends up doing the work for this for the next 6 months have their say after they've been on the recieving end of the firehose for a while :)

thanks,

greg k-h

#2 lore raw
Quoted 15 lines · Greg KH

One comment about something I've been working on lately:

Quoted 6 lines · Sasha Levin

1. Does security@ still work? It was built for a handful of carefully written reports, handled start to finish by a small group of volunteers. That process never really scaled before, and it won't scale now. Does it make sense to separate the roles? let AI driven tooling handle intake, filtering, and reproduction, and keep the humans for developing and coordinating fixes for reports that survive triage?

It was not really "built" for anything other than a place that people could report security bugs and get them fixed. We have changed the way it works over the past months, and for right now, things seem _MUCH_ smoother than ever before.

Quoted 5 lines

Also, we are getting funding "any day now" to have someone work full time on this, to be the "point person" for the alias to help when things fall through the cracks, as sometimes happens. We have verbal guarantees of at least 6 months funding, and if that goes well, it should be extended.

It almost sounds like we need a CRM system here rather than a person?

Quoted 8 lines

LLMs really can't be used for security@ EXCEPT if you use a local model, due to the "interesting" legal rules that security@ has to operate under. We've been using it there for a while now, when needed, and it has helped to spit out "first cut" patches for reports that do not contain a patch to start with. That usage is gone way down now that we ask for a patch in the intial report as all of these reports are being generated by a LLM anyway.

Quoted 9 lines

And attempting to use a LLM to handle intake and filtering just doesn't work. Many people who have experience with being on the recieving end of such a feed have agreed, that isn't the real problem with getting this feed at all. The real problem is unresponsive reporters, and "middlemen" that like to put their company inbetween the reporter of the bug, and us, the fixer of the bug. A LLM just can't do anything there, but I'll let the person who ends up doing the work for this for the next 6 months have their say after they've been on the recieving end of the firehose for a while :)

Ignoring the LLM for a moment, is there value in jumping through all these hoops if we don't also end up with backports of the issues that are being fixed?

Signature · 2 lines
Thanks,
Sasha
#3 lore raw
Quoted 16 lines · Sasha Levin
Quoted 15 lines · Greg KH

One comment about something I've been working on lately:

Quoted 6 lines · Sasha Levin

1. Does security@ still work? It was built for a handful of carefully written reports, handled start to finish by a small group of volunteers. That process never really scaled before, and it won't scale now. Does it make sense to separate the roles? let AI driven tooling handle intake, filtering, and reproduction, and keep the humans for developing and coordinating fixes for reports that survive triage?

It was not really "built" for anything other than a place that people could report security bugs and get them fixed. We have changed the way it works over the past months, and for right now, things seem _MUCH_ smoother than ever before.

Quoted 7 lines
Quoted 5 lines

Also, we are getting funding "any day now" to have someone work full time on this, to be the "point person" for the alias to help when things fall through the cracks, as sometimes happens. We have verbal guarantees of at least 6 months funding, and if that goes well, it should be extended.

It almost sounds like we need a CRM system here rather than a person?

Hah, no, any single-point-of-failure here would not be a good thing.

Quoted 18 lines
Quoted 8 lines

LLMs really can't be used for security@ EXCEPT if you use a local model, due to the "interesting" legal rules that security@ has to operate under. We've been using it there for a while now, when needed, and it has helped to spit out "first cut" patches for reports that do not contain a patch to start with. That usage is gone way down now that we ask for a patch in the intial report as all of these reports are being generated by a LLM anyway.

Quoted 9 lines

And attempting to use a LLM to handle intake and filtering just doesn't work. Many people who have experience with being on the recieving end of such a feed have agreed, that isn't the real problem with getting this feed at all. The real problem is unresponsive reporters, and "middlemen" that like to put their company inbetween the reporter of the bug, and us, the fixer of the bug. A LLM just can't do anything there, but I'll let the person who ends up doing the work for this for the next 6 months have their say after they've been on the recieving end of the firehose for a while :)

Quoted 3 lines

Ignoring the LLM for a moment, is there value in jumping through all these hoops if we don't also end up with backports of the issues that are being fixed?

I understand your worry here, but that's a separate issue. First we need to make sure the patches hit Linus's tree, which is what [email protected] is for. Then we need to make sure the patches hit stable kernels, which is what stable@vger is for. Two different groups/goals.

thanks,

greg k-h

#4 lore raw
Quoted 18 lines · Greg KH
Quoted 18 lines
Quoted 17 lines
Quoted 6 lines

1. Does security@ still work? It was built for a handful of carefully written reports, handled start to finish by a small group of volunteers. That process never really scaled before, and it won't scale now. Does it make sense to separate the roles? let AI driven tooling handle intake, filtering, and reproduction, and keep the humans for developing and coordinating fixes for reports that survive triage?

It was not really "built" for anything other than a place that people could report security bugs and get them fixed. We have changed the way it works over the past months, and for right now, things seem _MUCH_ smoother than ever before.

Also, we are getting funding "any day now" to have someone work full time on this, to be the "point person" for the alias to help when things fall through the cracks, as sometimes happens. We have verbal guarantees of at least 6 months funding, and if that goes well, it should be extended.

Quoted 3 lines
Quoted 1 line

It almost sounds like we need a CRM system here rather than a person?

Hah, no, any single-point-of-failure here would not be a good thing.

I agree, and I'm actually concerned that [email protected] is a SPOF as well. If someone is sitting on a bad enough 0-day vulnerability, we have to assume that they will be able to compromise kernel.org and knock us offline (or, more sneakily, control what [email protected] receives and doesn't).

I've played with the idea of several SecureDrop servers that sit behind OnionBalance and can receive security reports, but I'm not sure if this is going too deep down the over-complicating-it rabbit hole.

An easier solution may be:

- publish a security.txt that lists multiple addresses that are known to live on disparate mail hosting infrastructure, in addition to [email protected] (e.g. Greg KH, James B, Linus T); this way a security report is more assured to be delivered to at least one of them and not gated on kernel.org being up and reliable
- make sure members of the security team are using their direct delivery addresses instead of kernel.org aliases
- set up a secure parallel back-channel mechanism to be used when email is being disrupted (e.g. a Signal group)

I still think a SecureDrop server may be useful for anonymous security reports, but this is a separate consideration.

-K

#5 lore raw
In reply to Sasha Levin
Quoted 7 lines · Sasha Levin

3. Do we want some sort of a shared distro security backport list? Every major distro pays people to backport security fixes, and they all do the same work in parallel behind separate walls. A list where upstream and distro security teams write and review backports together, would pool that effort and land fixes where users are. Sure, it allows for more leaks, but we end up causing these leaks ourselves when we release a fix without working backports.

Well, linux-distros@ is still there, and is used to coordinate security fixes in exactly this way consistently for vast majority of all the relevant projects, pretty much except for the kernel. With my distro hat on, I'd add "unfortunately".

At least our documentation now refers to it properly (in response to linux-distros@ becoming less rigid about their original rules) since 0217f3944aebad1d, but it's still not, I believe, seen as a full-fledged part of the process.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#6 lore raw
Quoted 10 lines · Jiri Kosina
Quoted 7 lines · Sasha Levin

3. Do we want some sort of a shared distro security backport list? Every major distro pays people to backport security fixes, and they all do the same work in parallel behind separate walls. A list where upstream and distro security teams write and review backports together, would pool that effort and land fixes where users are. Sure, it allows for more leaks, but we end up causing these leaks ourselves when we release a fix without working backports.

Quoted 4 lines

Well, linux-distros@ is still there, and is used to coordinate security fixes in exactly this way consistently for vast majority of all the relevant projects, pretty much except for the kernel. With my distro hat on, I'd add "unfortunately".

Just to clarify: I don't propose the new security backport list to be closed/secret. We have hundreds of known security issues that our users kernels are vulnerable to, either because there's no backport, the fix fell through the cracks, etc.

This is my beef with the [email protected] list too: we seem to be overindexing on some issues, while we just ignore hundreds of other issues that make our users vulnerable.

I really don't understand why we bother with this whole dance around embargoed issues.

Signature · 2 lines
Thanks,
Sasha
#7 lore raw
In reply to Jiri Kosina
Quoted 5 lines · Jiri Kosina

Well, linux-distros@ is still there, and is used to coordinate security fixes in exactly this way consistently for vast majority of all the relevant projects, pretty much except for the kernel. With my distro hat on, I'd add "unfortunately".

I refuse to have anything to do with linux-distros.

They have a hard mandatory disclosure policy, which I think is completely unacceptable. It means that if you send actual exploits to the channel those exploits will be made public too. There is absolutely no value in that, and it seems completely crazy to me.

Yet exploit code - or at least a PoC - are hugely useful to developers. So you do want to have people who figure out some security issue - or any other bug, for that matter - to include such code, but that does not mean that it should be made public.

The *fix* obviously should be public, and the commit message needs to explain the bug. And the threat of mandatory disclosure for any unfixed bug is a good way to keep people honest. But disclosing exploits after-the-fact as if everybody will have immediately upgraded? Asinine.

"Linux-distros - just say no"

Linus

#8 lore raw
Quoted 11 lines · Linus Torvalds

I refuse to have anything to do with linux-distros.

They have a hard mandatory disclosure policy which I think is completely unacceptable. It means that if you send actual exploits to the channel those exploits will be made public too. There is absolutely no value in that, and it seems completely crazy to me.

Yet exploit code - or at least a PoC - are hugely useful to developers. So you do want to have people who figure out some security issue - or any other bug, for that matter - to include such code, but that does not mean that it should be made public.

I totally agree with you on this, but it's not the case with linux-distros@ any more. Let me quote Alexander from 2023 [1] specifically on this:

=====
I've just relaxed the policy on posting exploits. It used to say:

"If you shared exploit(s) that are not an essential part of the issue description, then at your option you may slightly delay posting them to oss-security but you must post the exploits to oss-security within at most 7 days of making the mandatory posting above."

Now it says:

"If you shared exploit(s) that are not an essential part of the issue description, then at your option you may delay or withhold posting them to oss-security, and you're encouraged to post the exploits to oss-security in 1 to 30 days of making the mandatory posting above. The delay may reasonably match your estimate for independent development of such exploits."

So it's no longer a requirement ("or withhold" is now an option), and the recommended delay is now 1 to 30 days (which covers the real-world range from the old Exim bug to the recent Linux StackRot bug). I also added a sentence suggesting how to choose the delay.
=====

So it's encouraged (which is still of course questionable), but it's no longer mandatory and it's up to the reporter's discretion.

[1] https://www.openwall.com/lists/oss-security/2023/09/08/4

Signature · 2 lines
Jiri Kosina
SUSE Labs
#9 lore raw
In reply to Linus Torvalds
Quoted 14 lines · Linus Torvalds
Quoted 5 lines · Jiri Kosina

Well, linux-distros@ is still there, and is used to coordinate security fixes in exactly this way consistently for vast majority of all the relevant projects, pretty much except for the kernel. With my distro hat on, I'd add "unfortunately".

I refuse to have anything to do with linux-distros.

They have a hard mandatory disclosure policy, which I think is completely unacceptable. It means that if you send actual exploits to the channel those exploits will be made public too. There is absolutely no value in that, and it seems completely crazy to me.

Quoted 4 lines

Yet exploit code - or at least a PoC - are hugely useful to developers. So you do want to have people who figure out some security issue - or any other bug, for that matter - to include such code, but that does not mean that it should be made public.

Does this asymmetry in effort between the fix and the reproducer/exploit code really exists these days? Point your favorite LLM at a commit that fixes an issue and ask it to reproduce the problem. You'll likely end up with working exploit code fairly quickly.

Quoted 5 lines

The *fix* obviously should be public, and the commit message needs to explain the bug. And the threat of mandatory disclosure for any unfixed bug is a good way to keep people honest. But disclosing exploits after-the-fact as if everybody will have immediately upgraded? Asinine.

... which is why I think that our current security process, and [email protected], effectively does something similar to linux-distros@:

1. We end up bringing more attention to a particular issue once the fix is merged.
2. We make the issue public before users had a chance to upgrade.
3. Any "script kiddie" is then able to generate a working exploit from the commit that fixes the issue.

Even without [email protected], things like the syzkaller dashboard and the vulns.git CVE repo are effectively a massive public library of vulnerabilities.

Signature · 2 lines
Thanks,
Sasha
#10 lore raw
Quoted 3 lines · Sasha Levin

Does this asymmetry in effort between the fix and the reproducer/exploit code really exists these days? Point your favorite LLM at a commit [..]

I don't care. A bad policy that encourages bad behavior is stupid. They've apparently softened it - see Jiri's email - but it's still just midguided.

I think the fix should be public. Not unnecessary stuff that can be harmful.

We already have too many ambulance-chasing security researchers and tech journalists, I don't think we should do their work for them. If they use their LLM tokens for it, so be it, that doesn't change the basic premise.

Linus