Skip to contentSkip to conversation

Fix for CVE-2016-7097 missing from linux-4.1.y

DISCUSSION Josh Hunt 3 participants 5 messages Nov 10, 2016 – Nov 16, 2016 Stable branch

lore
Share & tools
lore

Josh Hunt

author
#0 lore raw

Hi Jan

You are the author of commit 073931017b49 ("posix_acl: Clear SGID bit when setting file permissions") which has been identified to resolve CVE-2016-7097, but is missing from linux-4.1.y.

If you believe this commit should be part of linux-4.1.y can you please reply with your approval for its inclusion?

Thanks!
Josh

P.S.: This is my first attempt at trying to make sure all known CVE fixes are in the stable kernels. After a discussion with Sasha at Plumbers I'd like to start doing this on a regular basis. Any feedback here is welcome.

---
Full list of CVEs associated with 4.1.y can be found here:
http://joshuahunt.github.io/cve-tracker/linux-4.1.y-stable-cve-list.html

#1 lore raw

Hi!

Quoted 6 lines · Josh Hunt

You are the author of commit 073931017b49 ("posix_acl: Clear SGID bit when setting file permissions") which has been identified to resolve CVE-2016-7097, but is missing from linux-4.1.y.

If you believe this commit should be part of linux-4.1.y can you please reply with your approval for its inclusion?

Yes, the problem exists all the way back, I belive since ACLs were introduced. Definitely exists in 3.0 which is the oldest version I've checked. The patch may need some massaging to apply which is why it didn't get into 4.1 I assume. And the backport will need a review because all filesystems supporting ACLs need to be handled where frankly I'm not quite sure the bug-severity / effort is worth it.

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#2 lore raw
Quoted 10 lines · Jan Kara

Hi!

Quoted 6 lines · Josh Hunt

You are the author of commit 073931017b49 ("posix_acl: Clear SGID bit when setting file permissions") which has been identified to resolve CVE-2016-7097, but is missing from linux-4.1.y.

If you believe this commit should be part of linux-4.1.y can you please reply with your approval for its inclusion?

Quoted 6 lines

Yes, the problem exists all the way back, I belive since ACLs were introduced. Definitely exists in 3.0 which is the oldest version I've checked. The patch may need some massaging to apply which is why it didn't get into 4.1 I assume. And the backport will need a review because all filesystems supporting ACLs need to be handled where frankly I'm not quite sure the bug-severity / effort is worth it.

I've attempted backports to 3.2 and 3.16, and will send those out for review in the next few days.

Ben.

Signature · 2 lines
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.
author
#3 lore raw
Quoted 18 lines · Ben Hutchings
Quoted 10 lines · Jan Kara

Hi!

Quoted 6 lines · Josh Hunt

You are the author of commit 073931017b49 ("posix_acl: Clear SGID bit when setting file permissions") which has been identified to resolve CVE-2016-7097, but is missing from linux-4.1.y.

If you believe this commit should be part of linux-4.1.y can you please reply with your approval for its inclusion?

Quoted 6 lines

Yes, the problem exists all the way back, I belive since ACLs were introduced. Definitely exists in 3.0 which is the oldest version I've checked. The patch may need some massaging to apply which is why it didn't get into 4.1 I assume. And the backport will need a review because all filesystems supporting ACLs need to be handled where frankly I'm not quite sure the bug-severity / effort is worth it.

Quoted 4 lines

I've attempted backports to 3.2 and 3.16, and will send those out for review in the next few days.

Ben.

Jan/Ben

Thanks for following up on this.

Ben - I'll be on the lookout for those backports.

Thanks!
Josh

#4 lore raw
Quoted 22 lines · Josh Hunt
Quoted 21 lines · Ben Hutchings
Quoted 10 lines · Jan Kara

Hi!

Quoted 6 lines · Josh Hunt

You are the author of commit 073931017b49 ("posix_acl: Clear SGID bit when setting file permissions") which has been identified to resolve CVE-2016-7097, but is missing from linux-4.1.y.

If you believe this commit should be part of linux-4.1.y can you please reply with your approval for its inclusion?

Quoted 6 lines

Yes, the problem exists all the way back, I belive since ACLs were introduced. Definitely exists in 3.0 which is the oldest version I've checked. The patch may need some massaging to apply which is why it didn't get into 4.1 I assume. And the backport will need a review because all filesystems supporting ACLs need to be handled where frankly I'm not quite sure the bug-severity / effort is worth it.

I've attempted backports to 3.2 and 3.16, and will send those out for review in the next few days.

Quoted 7 lines
Quoted 1 line

Ben.

Jan/Ben

Thanks for following up on this.

Ben - I'll be on the lookout for those backports.

Here they are:

https://marc.info/?l=linux-kernel&m=147908961924568
https://marc.info/?l=linux-kernel&m=147909400125559

Ben.

Signature · 3 lines
Ben Hutchings
Time is nature's way of making sure that everything doesn't happen at
once.