Bug #121858 VALIDATE_PASSWORD_STRENGTH expression crashes mysqld

Submitted: 22 Nov 15:46
Reporter: QiFan Liu Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Components / Services Severity:S1 (Critical)
Version:26.10.0 OS:Linux
Assigned to: CPU Architecture:x86
Tags: SIGSEGV, validate_password, VALIDATE_PASSWORD_STRENGTH

[22 Nov 15:46] QiFan Liu
Description:
VALIDATE_PASSWORD_STRENGTH() crashes mysqld when its argument is the expression shown below. The client loses its connection, and the server log reports:

mysqld got signal 11 ;
Signal SIGSEGV (Address not mapped to object) at address 0x8

The server log identifies the query as:

SELECT VALIDATE_PASSWORD_STRENGTH((9223372036854775807 * 10129) - SYSDATE(1))

The crash reproduced twice. The server recovered and accepted connections after each crash.

How to repeat:
Run as root on a stock server:

SELECT VALIDATE_PASSWORD_STRENGTH((9223372036854775807 * 10129) - SYSDATE(1));

The statement terminates mysqld with SIGSEGV at address 0x8.

Suggested fix:
Check whether evaluation of the function argument returned a null string pointer before accessing its length or contents.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.046 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.