Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1288762 > unrolled thread

[PATCH 4.3 0/2] 4.3.2-stable review

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2015-12-10 19:10 +0100
Last post2015-12-11 00:10 +0100
Articles 9 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 4.3 0/2] 4.3.2-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-12-10 19:10 +0100
    [PATCH 4.3 2/2] X.509: Fix the time validation [ver #2] Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-12-10 19:10 +0100
    [PATCH 4.3 1/2] crypto: asymmetric_keys - remove always false comparison Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-12-10 19:10 +0100
    Re: [PATCH 4.3 0/2] 4.3.2-stable review Alexander Holler <holler@ahsoftware.de> - 2015-12-10 19:40 +0100
      Re: [PATCH 4.3 0/2] 4.3.2-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-12-10 19:50 +0100
    Re: [PATCH 4.3 0/2] 4.3.2-stable review Shuah Khan <shuahkh@osg.samsung.com> - 2015-12-10 22:00 +0100
      Re: [PATCH 4.3 0/2] 4.3.2-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-12-10 22:10 +0100
    Re: [PATCH 4.3 0/2] 4.3.2-stable review Guenter Roeck <linux@roeck-us.net> - 2015-12-10 22:50 +0100
      Re: [PATCH 4.3 0/2] 4.3.2-stable review Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-12-11 00:10 +0100

#1288762 — [PATCH 4.3 0/2] 4.3.2-stable review

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2015-12-10 19:10 +0100
Subject[PATCH 4.3 0/2] 4.3.2-stable review
Message-ID<qEdPc-1ez-7@gated-at.bofh.it>
This is the start of the stable review cycle for the 4.3.2 release.
There are 2 patches in this series, all will be posted as a response
to this one.  If anyone has any issues with these being applied, please
let me know.

Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.3.2-rc1.gz
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Linux 4.3.2-rc1

David Howells <dhowells@redhat.com>
    X.509: Fix the time validation [ver #2]

sudip <sudipm.mukherjee@gmail.com>
    crypto: asymmetric_keys - remove always false comparison


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

Diffstat:

 Makefile                                  |  4 ++--
 crypto/asymmetric_keys/x509_cert_parser.c | 18 ++++++++++--------
 2 files changed, 12 insertions(+), 10 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1288763 — [PATCH 4.3 2/2] X.509: Fix the time validation [ver #2]

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2015-12-10 19:10 +0100
Subject[PATCH 4.3 2/2] X.509: Fix the time validation [ver #2]
Message-ID<qEdPc-1ez-5@gated-at.bofh.it>
In reply to#1288762
4.3-stable review patch.  If anyone has any objections, please let me know.

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

From: David Howells <dhowells@redhat.com>

commit cc25b994acfbc901429da682d0f73c190e960206 upstream.

This fixes CVE-2015-5327.  It affects kernels from 4.3-rc1 onwards.

Fix the X.509 time validation to use month number-1 when looking up the
number of days in that month.  Also put the month number validation before
doing the lookup so as not to risk overrunning the array.

This can be tested by doing the following:

cat <<EOF | openssl x509 -outform DER | keyctl padd asymmetric "" @s
-----BEGIN CERTIFICATE-----
MIIDbjCCAlagAwIBAgIJAN/lUld+VR4hMA0GCSqGSIb3DQEBCwUAMCkxETAPBgNV
BAoMCGxvY2FsLWNhMRQwEgYDVQQDDAtzaWduaW5nIGtleTAeFw0xNTA5MDEyMT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E-----
EOF

If it works, it emit a key ID; if it fails, it should give a bad message
error.

Reported-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 crypto/asymmetric_keys/x509_cert_parser.c |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

--- a/crypto/asymmetric_keys/x509_cert_parser.c
+++ b/crypto/asymmetric_keys/x509_cert_parser.c
@@ -531,7 +531,11 @@ int x509_decode_time(time64_t *_t,  size
 	if (*p != 'Z')
 		goto unsupported_time;
 
-	mon_len = month_lengths[mon];
+	if (year < 1970 ||
+	    mon < 1 || mon > 12)
+		goto invalid_time;
+
+	mon_len = month_lengths[mon - 1];
 	if (mon == 2) {
 		if (year % 4 == 0) {
 			mon_len = 29;
@@ -543,14 +547,12 @@ int x509_decode_time(time64_t *_t,  size
 		}
 	}
 
-	if (year < 1970 ||
-	    mon < 1 || mon > 12 ||
-	    day < 1 || day > mon_len ||
+	if (day < 1 || day > mon_len ||
 	    hour > 23 ||
 	    min > 59 ||
 	    sec > 59)
 		goto invalid_time;
-	
+
 	*_t = mktime64(year, mon, day, hour, min, sec);
 	return 0;
 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1288765 — [PATCH 4.3 1/2] crypto: asymmetric_keys - remove always false comparison

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2015-12-10 19:10 +0100
Subject[PATCH 4.3 1/2] crypto: asymmetric_keys - remove always false comparison
Message-ID<qEdPd-1ez-9@gated-at.bofh.it>
In reply to#1288762
4.3-stable review patch.  If anyone has any objections, please let me know.

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

From: sudip <sudipm.mukherjee@gmail.com>

commit 4dd17c9c8a30c8d8cd1c9d4b94f08aca4b038d3e upstream.

hour, min and sec are unsigned int and they can never be less than zero.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 crypto/asymmetric_keys/x509_cert_parser.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/crypto/asymmetric_keys/x509_cert_parser.c
+++ b/crypto/asymmetric_keys/x509_cert_parser.c
@@ -546,9 +546,9 @@ int x509_decode_time(time64_t *_t,  size
 	if (year < 1970 ||
 	    mon < 1 || mon > 12 ||
 	    day < 1 || day > mon_len ||
-	    hour < 0 || hour > 23 ||
-	    min < 0 || min > 59 ||
-	    sec < 0 || sec > 59)
+	    hour > 23 ||
+	    min > 59 ||
+	    sec > 59)
 		goto invalid_time;
 	
 	*_t = mktime64(year, mon, day, hour, min, sec);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1288798

FromAlexander Holler <holler@ahsoftware.de>
Date2015-12-10 19:40 +0100
Message-ID<qEeie-1qh-7@gated-at.bofh.it>
In reply to#1288762
Am 10.12.2015 um 19:03 schrieb Greg Kroah-Hartman:
> This is the start of the stable review cycle for the 4.3.2 release.
> There are 2 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> 	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.3.2-rc1.gz
> and the diffstat can be found below.

Tested successfully by running a kernel with those two patches. Thanks a 
lot for the quick reaction.

Regards,

Alexander Holler
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1288816

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2015-12-10 19:50 +0100
Message-ID<qEerU-1tP-27@gated-at.bofh.it>
In reply to#1288798
On Thu, Dec 10, 2015 at 07:38:47PM +0100, Alexander Holler wrote:
> Am 10.12.2015 um 19:03 schrieb Greg Kroah-Hartman:
> >This is the start of the stable review cycle for the 4.3.2 release.
> >There are 2 patches in this series, all will be posted as a response
> >to this one.  If anyone has any issues with these being applied, please
> >let me know.
> >
> >Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
> >Anything received after that time might be too late.
> >
> >The whole patch series can be found in one patch at:
> >	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.3.2-rc1.gz
> >and the diffstat can be found below.
> 
> Tested successfully by running a kernel with those two patches. Thanks a lot
> for the quick reaction.

Great, thanks for testing and leting me know.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1288917

FromShuah Khan <shuahkh@osg.samsung.com>
Date2015-12-10 22:00 +0100
Message-ID<qEgtH-2KO-1@gated-at.bofh.it>
In reply to#1288762
On 12/10/2015 11:03 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 4.3.2 release.
> There are 2 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
> Anything received after that time might be too late.
> 
> The whole patch series can be found in one patch at:
> 	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.3.2-rc1.gz
> and the diffstat can be found below.
> 
> thanks,
> 

Compiled and booted on my test system. No dmesg regressions,

thanks,
-- Shuah


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1288928

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2015-12-10 22:10 +0100
Message-ID<qEgDn-33z-5@gated-at.bofh.it>
In reply to#1288917
On Thu, Dec 10, 2015 at 01:58:43PM -0700, Shuah Khan wrote:
> On 12/10/2015 11:03 AM, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 4.3.2 release.
> > There are 2 patches in this series, all will be posted as a response
> > to this one.  If anyone has any issues with these being applied, please
> > let me know.
> > 
> > Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
> > Anything received after that time might be too late.
> > 
> > The whole patch series can be found in one patch at:
> > 	kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.3.2-rc1.gz
> > and the diffstat can be found below.
> > 
> > thanks,
> > 
> 
> Compiled and booted on my test system. No dmesg regressions,

Great, thanks for testing.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1288952

FromGuenter Roeck <linux@roeck-us.net>
Date2015-12-10 22:50 +0100
Message-ID<qEhg7-3j4-21@gated-at.bofh.it>
In reply to#1288762
On Thu, Dec 10, 2015 at 01:03:46PM -0500, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 4.3.2 release.
> There are 2 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
> Anything received after that time might be too late.
> 
Build results:
	total: 145 pass: 145 fail: 0
Qemu test results:
	total: 95 pass: 95 fail: 0

Details are available at http://server.roeck-us.net:8010/builders.

Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1289001

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2015-12-11 00:10 +0100
Message-ID<qEivx-4mq-37@gated-at.bofh.it>
In reply to#1288952
On Thu, Dec 10, 2015 at 01:48:28PM -0800, Guenter Roeck wrote:
> On Thu, Dec 10, 2015 at 01:03:46PM -0500, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 4.3.2 release.
> > There are 2 patches in this series, all will be posted as a response
> > to this one.  If anyone has any issues with these being applied, please
> > let me know.
> > 
> > Responses should be made by Fri Dec 11 18:02:18 UTC 2015.
> > Anything received after that time might be too late.
> > 
> Build results:
> 	total: 145 pass: 145 fail: 0
> Qemu test results:
> 	total: 95 pass: 95 fail: 0
> 
> Details are available at http://server.roeck-us.net:8010/builders.

Thanks for testing and letting me know.

I think I'll release this one sooner than expected due to the bug it
fixes...

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web