stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHES] Bind mount escape fixes (CVE-2015-2925)
@ 2015-10-01 16:15 Eric W. Biederman
  2015-10-01 23:08 ` Willy Tarreau
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Eric W. Biederman @ 2015-10-01 16:15 UTC (permalink / raw)
  To: stable
  Cc: Greg Kroah-Hartman, Sasha Levin, Jiri Slaby, Willy Tarreau,
	Li Zefan, Ben Hutchings

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]


With a strategically placed rename bind mounts can be tricked into
giving processes access to the entire filesystem instead of just a piece
of it.  This misfeature has existed since bind mounts were introduced
into the kernel.  This issue has been fixed in Linus's tree and below
are my tested backports of the fixes to 4.2.1, 4.1.8, 3.18.21, 3.14.53,
3.12.48, 3.10.89, 3.4.109, 3.2.71, 2.6.32.68.  All of the kernels 
currently listed as being active.

The fixes backported are:
cde93be45a8a90d8c264c776fab63487b5038a65 dcache: Handle escaped paths in prepend_path
397d425dc26da728396e66d392d5dcb8dac30c37 vfs: Test for and handle paths that are unreachable from their mnt_root

As I backported the patches the logical work remained the same but the
exact implemenation details changed to fit in with the vfs present in
the older kernels.  Minor changes were needed for every the backport to
every kernel except 4.2.1.

Please queue these changes for the appropriate stable trees.


[-- Attachment #2: bind-4.2.mbox --]
[-- Type: application/mbox, Size: 5682 bytes --]

[-- Attachment #3: bind-4.1.mbox --]
[-- Type: application/mbox, Size: 5980 bytes --]

[-- Attachment #4: bind-3.18.mbox --]
[-- Type: application/mbox, Size: 5982 bytes --]

[-- Attachment #5: bind-3.14.mbox --]
[-- Type: application/mbox, Size: 5982 bytes --]

[-- Attachment #6: bind-3.12.mbox --]
[-- Type: application/mbox, Size: 5945 bytes --]

[-- Attachment #7: bind-3.10.mbox --]
[-- Type: application/mbox, Size: 6020 bytes --]

[-- Attachment #8: bind-3.4.mbox --]
[-- Type: application/mbox, Size: 6032 bytes --]

[-- Attachment #9: bind-3.2.mbox --]
[-- Type: application/mbox, Size: 6003 bytes --]

[-- Attachment #10: bind-2.6.32.mbox --]
[-- Type: application/mbox, Size: 6499 bytes --]

[-- Attachment #11: Type: text/plain, Size: 6 bytes --]


Eric

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-10-18  0:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 16:15 [PATCHES] Bind mount escape fixes (CVE-2015-2925) Eric W. Biederman
2015-10-01 23:08 ` Willy Tarreau
2015-10-02  2:45 ` Ben Hutchings
2015-10-02  3:28   ` Eric W. Biederman
2015-10-02 16:01     ` Eric W. Biederman
2015-10-03  1:48       ` Ben Hutchings
2015-10-03  6:12         ` Willy Tarreau
2015-10-02  9:26 ` Jiri Slaby
2015-10-05 10:34 ` Luis Henriques
2015-10-08  1:08 ` Ben Hutchings
2015-10-08  5:11   ` Willy Tarreau
2015-10-18  0:01 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).