U.S. stocks rose on Wednesday, the second trading day of 2018. The three benchmark U.S. indexes hit record closes after setting intraday records earlier.

Shares of Intel Corp. (INTC) fell following reports of a potential bug in the chipmaker's technology. Intel said that it believes these "exploits do not have the potential to corrupt, modify or delete data." It is also working with other technology companies to develop an industry-wide approach to resolve this issue. Shares of rival Advanced Micro Devices Inc. (AMD) soared on the report.

MoneyGram International Inc. (MGI) stock tanked after U.S. regulators rejected Ant Financial's plan to acquire the U.S. money transfer company over national security concerns. The $1.2 billion deal, which had been in the works for several years, represents a blow for Jack Ma, the executive chairman of Chinese internet conglomerate Alibaba Group Holding Ltd. (BABA) , who owns Ant Financial together with Alibaba executives.

Want more exclusive investing insight from Jim Cramer? Get 24/7 access to Jim's charitable trust portfolio with a free trial to Action Alerts PLUS!

More from Video

What's Behind the Retail Sector's Fall From Grace? NYSE Trader Weighs in

What's Behind the Retail Sector's Fall From Grace? NYSE Trader Weighs in

Jim Cramer Likes Secular Growers

Jim Cramer Likes Secular Growers

In the Shadow of Bankruptcy: Distressed Investing Opportunity

In the Shadow of Bankruptcy: Distressed Investing Opportunity

$1,320 Gold May Be In The Cards

$1,320 Gold May Be In The Cards

CES 2019: The Future Is Here and it's a Walking Car

CES 2019: The Future Is Here and it's a Walking Car